private ExecutorService createSingleThreadExecutorService(HazelcastClientInstanceImpl client) { ClassLoader classLoader = client.getClientConfig().getClassLoader(); SingleExecutorThreadFactory threadFactory = new SingleExecutorThreadFactory(classLoader, client.getName() + ".cluster-"); return Executors.newSingleThreadExecutor(threadFactory); }
private ExecutorService createSingleThreadExecutorService(HazelcastClientInstanceImpl client) { ClassLoader classLoader = client.getClientConfig().getClassLoader(); SingleExecutorThreadFactory threadFactory = new SingleExecutorThreadFactory(classLoader, client.getName() + ".cluster-"); return Executors.newSingleThreadExecutor(threadFactory); }
public OperationParkerImpl(NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; Node node = nodeEngine.getNode(); this.logger = node.getLogger(OperationParker.class); this.expirationExecutor = Executors.newSingleThreadExecutor( new SingleExecutorThreadFactory(node.getConfigClassLoader(), createThreadName(nodeEngine.getHazelcastInstance().getName(), "operation-parker"))); this.expirationTaskFuture = expirationExecutor.submit(new ExpirationTask()); }
public OperationParkerImpl(NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; Node node = nodeEngine.getNode(); this.logger = node.getLogger(OperationParker.class); this.expirationExecutor = Executors.newSingleThreadExecutor( new SingleExecutorThreadFactory(node.getConfigClassLoader(), createThreadName(nodeEngine.getHazelcastInstance().getName(), "operation-parker"))); this.expirationTaskFuture = expirationExecutor.submit(new ExpirationTask()); }
AbstractClientListenerService(HazelcastClientInstanceImpl client, int eventThreadCount, int eventQueueCapacity) { this.client = client; serializationService = client.getSerializationService(); logger = client.getLoggingService().getLogger(ClientListenerService.class); String name = client.getName(); eventExecutor = new StripedExecutor(logger, name + ".event", eventThreadCount, eventQueueCapacity); ClassLoader classLoader = client.getClientConfig().getClassLoader(); ThreadFactory threadFactory = new SingleExecutorThreadFactory(classLoader, name + ".eventRegistration-"); registrationExecutor = Executors.newSingleThreadScheduledExecutor(threadFactory); clientConnectionManager = client.getConnectionManager(); AbstractClientInvocationService invocationService = (AbstractClientInvocationService) client.getInvocationService(); invocationTimeoutMillis = invocationService.getInvocationTimeoutMillis(); invocationRetryPauseMillis = invocationService.getInvocationRetryPauseMillis(); }
AbstractClientListenerService(HazelcastClientInstanceImpl client) { this.client = client; this.serializationService = client.getSerializationService(); this.logger = client.getLoggingService().getLogger(ClientListenerService.class); String name = client.getName(); HazelcastProperties properties = client.getProperties(); int eventQueueCapacity = properties.getInteger(ClientProperty.EVENT_QUEUE_CAPACITY); int eventThreadCount = properties.getInteger(ClientProperty.EVENT_THREAD_COUNT); this.eventExecutor = new StripedExecutor(logger, name + ".event", eventThreadCount, eventQueueCapacity, true); ClassLoader classLoader = client.getClientConfig().getClassLoader(); ThreadFactory threadFactory = new SingleExecutorThreadFactory(classLoader, name + ".eventRegistration-"); this.registrationExecutor = Executors.newSingleThreadScheduledExecutor(threadFactory); this.clientConnectionManager = client.getConnectionManager(); AbstractClientInvocationService invocationService = (AbstractClientInvocationService) client.getInvocationService(); this.invocationTimeoutMillis = invocationService.getInvocationTimeoutMillis(); this.invocationRetryPauseMillis = invocationService.getInvocationRetryPauseMillis(); }
ThreadFactory singleExecutorThreadFactory = new SingleExecutorThreadFactory(configClassLoader, createThreadPoolName(hzName, "scheduled")); this.scheduledExecutorService = new LoggingScheduledExecutor(logger, 1,
ThreadFactory singleExecutorThreadFactory = new SingleExecutorThreadFactory(configClassLoader, createThreadPoolName(hzName, "scheduled")); this.scheduledExecutorService = new LoggingScheduledExecutor(logger, 1,