mirror of
https://github.com/corda/corda.git
synced 2025-02-21 09:51:57 +00:00
Make the RPC observations pool use daemon threads.
This commit is contained in:
parent
a9a50ce8f3
commit
b546bec064
@ -85,7 +85,7 @@ class RPCClientProxyHandler(
|
|||||||
private var reaperExecutor: ScheduledExecutorService? = null
|
private var reaperExecutor: ScheduledExecutorService? = null
|
||||||
|
|
||||||
// A sticky pool for running Observable.onNext()s. We need the stickiness to preserve the observation ordering.
|
// A sticky pool for running Observable.onNext()s. We need the stickiness to preserve the observation ordering.
|
||||||
private val observationExecutorThreadFactory = ThreadFactoryBuilder().setNameFormat("rpc-client-observation-pool-%d").build()
|
private val observationExecutorThreadFactory = ThreadFactoryBuilder().setNameFormat("rpc-client-observation-pool-%d").setDaemon(true).build()
|
||||||
private val observationExecutorPool = LazyStickyPool(rpcConfiguration.observationExecutorPoolSize) {
|
private val observationExecutorPool = LazyStickyPool(rpcConfiguration.observationExecutorPoolSize) {
|
||||||
Executors.newFixedThreadPool(1, observationExecutorThreadFactory)
|
Executors.newFixedThreadPool(1, observationExecutorThreadFactory)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user