File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
src/main/java/com/rabbitmq/client/amqp Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,17 @@ public interface ConnectionBuilder extends ConnectionSettings<ConnectionBuilder>
40
40
/**
41
41
* Set the executor service to use for incoming message delivery.
42
42
*
43
- * <p>The executor service is shared between the connection consumers, unless a consumer sets its
44
- * own executor service with {@link ConsumerBuilder#dispatchingExecutorService(ExecutorService)}.
43
+ * <p>The executor service is shared between the connection consumers.
45
44
*
46
- * <p>By default, a new single-threaded executor is created.
45
+ * <p>By default, an executor service with {@link Runtime#availableProcessors()} thread(s) is
46
+ * created for the connection.
47
47
*
48
48
* <p>It is the developer's responsibility to shut down the executor when it is no longer needed.
49
49
*
50
50
* @param executorService executor service for incoming message delivery
51
51
* @return this builder instance
52
- * @see ConsumerBuilder#dispatchingExecutorService(ExecutorService)
52
+ * @see
53
+ * com.rabbitmq.client.amqp.impl.AmqpEnvironmentBuilder#dispatchingExecutorService(ExecutorService)
53
54
*/
54
55
ConnectionBuilder dispatchingExecutorService (ExecutorService executorService );
55
56
Original file line number Diff line number Diff line change @@ -51,6 +51,19 @@ public AmqpEnvironmentBuilder executorService(ExecutorService executorService) {
51
51
return this ;
52
52
}
53
53
54
+ /**
55
+ * Set the shared executor service to use for incoming message delivery in this environment
56
+ * instance connections.
57
+ *
58
+ * <p>There is no shared executor service by default, each connection uses its own, see {@link
59
+ * ConnectionBuilder#dispatchingExecutorService(ExecutorService)}.
60
+ *
61
+ * <p>It is the developer's responsibility to shut down the executor when it is no longer needed.
62
+ *
63
+ * @param executorService the executor service for incoming message delivery
64
+ * @return this builder instance
65
+ * @see ConnectionBuilder#dispatchingExecutorService(ExecutorService)
66
+ */
54
67
public AmqpEnvironmentBuilder dispatchingExecutorService (ExecutorService executorService ) {
55
68
this .dispatchingExecutorService = executorService ;
56
69
return this ;
You can’t perform that action at this time.
0 commit comments