@FunctionalInterface public interface PersistentStreamScheduledExecutorBuilder extends BiFunction<Integer,String,ScheduledExecutorService>
ScheduledExecutorService for a PersistentStreamMessageSource.| Modifier and Type | Method and Description |
|---|---|
default ScheduledExecutorService |
build(Integer threadCount,
String streamName)
|
static PersistentStreamScheduledExecutorBuilder |
defaultFactory()
|
andThen, applydefault ScheduledExecutorService build(Integer threadCount, String streamName)
threadCount - The requested thread count for the persistent stream. Can for example be used to define the
pool size of the ScheduledExecutorService under construction.streamName - The name of the persistent stream. Can, for example, be used to define the name of the
ThreadFactory given to a ScheduledExecutorServiceScheduledExecutorService based on the given threadCount and streamName.static PersistentStreamScheduledExecutorBuilder defaultFactory()
PersistentStreamScheduledExecutorBuilder. Constructs a ScheduledExecutorService by using
the given threadCount as the pool size for the executor. Uses the given streamName to build an
AxonThreadFactory with the group name "PersistentStream[{streamName}]".PersistentStreamScheduledExecutorBuilder.Copyright © 2010–2025. All rights reserved.