mirror of
https://github.com/corda/corda.git
synced 2025-03-14 08:16:32 +00:00
CORDA-1686: Make "rpc-client-sender" daemon (#3455)
Such that they do not prevent application that started them from exiting.
This commit is contained in:
parent
4e52a957d1
commit
34923506f4
@ -201,7 +201,7 @@ class RPCClientProxyHandler(
|
|||||||
ThreadFactoryBuilder().setNameFormat("rpc-client-reaper-%d").setDaemon(true).build()
|
ThreadFactoryBuilder().setNameFormat("rpc-client-reaper-%d").setDaemon(true).build()
|
||||||
)
|
)
|
||||||
sendExecutor = Executors.newSingleThreadExecutor(
|
sendExecutor = Executors.newSingleThreadExecutor(
|
||||||
ThreadFactoryBuilder().setNameFormat("rpc-client-sender-%d").build()
|
ThreadFactoryBuilder().setNameFormat("rpc-client-sender-%d").setDaemon(true).build()
|
||||||
)
|
)
|
||||||
reaperScheduledFuture = reaperExecutor!!.scheduleAtFixedRate(
|
reaperScheduledFuture = reaperExecutor!!.scheduleAtFixedRate(
|
||||||
this::reapObservablesAndNotify,
|
this::reapObservablesAndNotify,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user