Elffuss BraidHub

kikocis/java-driver public

Fix executors configuration (mistake in last merge).
Changesetc0c391746aac8f7d08c3795026f8dc386efe11fe422851e88c4dcef7c058dea4
Authorolim7t <omichallat+github@gmail.com> · 2015-03-30 16:56 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-03-30 16:56 +02:00
Parents7b0de0a8ba8d

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +4 −4
@@ -1140,10 +1140,10 @@
11401140 this.configuration = configuration;
11411141 this.configuration.register(this);
11421142
1143- this.executor = makeExecutor(NON_BLOCKING_EXECUTOR_SIZE, "Cassandra Java Driver worker-%d", executorQueue);
1144- this.blockingExecutor = makeExecutor(2, "Cassandra Java Driver blocking tasks worker-%d", blockingExecutorQueue);
1145- this.reconnectionExecutor = new ScheduledThreadPoolExecutor(2, threadFactory("Reconnection-%d"));
1146- this.scheduledTasksExecutor = new ScheduledThreadPoolExecutor(1, threadFactory("Scheduled Tasks-%d"));
1143+ this.executor = makeExecutor(NON_BLOCKING_EXECUTOR_SIZE, "worker", executorQueue);
1144+ this.blockingExecutor = makeExecutor(2, "blocking-task-worker", blockingExecutorQueue);
1145+ this.reconnectionExecutor = new ScheduledThreadPoolExecutor(2, threadFactory("reconnection"));
1146+ this.scheduledTasksExecutor = new ScheduledThreadPoolExecutor(1, threadFactory("scheduled-task-worker"));
11471147
11481148 this.reaper = new ConnectionReaper(this);
11491149