Issue #132 - ClientConnector abstraction.
Added name to default executor and scheduler after review. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
6c4ee083be
commit
32a6d83739
|
@ -167,9 +167,13 @@ public class ClientConnector extends ContainerLifeCycle
|
|||
protected void doStart() throws Exception
|
||||
{
|
||||
if (executor == null)
|
||||
setExecutor(new QueuedThreadPool());
|
||||
{
|
||||
QueuedThreadPool clientThreads = new QueuedThreadPool();
|
||||
clientThreads.setName(String.format("client-pool@%x", hashCode()));
|
||||
setExecutor(clientThreads);
|
||||
}
|
||||
if (scheduler == null)
|
||||
setScheduler(new ScheduledExecutorScheduler());
|
||||
setScheduler(new ScheduledExecutorScheduler(String.format("client-scheduler@%x", hashCode()), false));
|
||||
if (byteBufferPool == null)
|
||||
setByteBufferPool(new MappedByteBufferPool());
|
||||
if (sslContextFactory == null)
|
||||
|
|
Loading…
Reference in New Issue