Class PartitionedChannelSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<PartitionedChannelSpec, PartitionedChannel>
org.springframework.integration.dsl.MessageChannelSpec<PartitionedChannelSpec, PartitionedChannel>
org.springframework.integration.dsl.LoadBalancingChannelSpec<PartitionedChannelSpec, PartitionedChannel>
org.springframework.integration.dsl.PartitionedChannelSpec
- All Implemented Interfaces:
DisposableBean, FactoryBean<PartitionedChannel>, InitializingBean, Lifecycle, Phased, SmartLifecycle, ComponentsRegistration
public class PartitionedChannelSpec
extends LoadBalancingChannelSpec<PartitionedChannelSpec, PartitionedChannel>
A
LoadBalancingChannelSpec implementation for the PartitionedChannel.- Since:
- 6.1
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class LoadBalancingChannelSpec
failoverStrategy, loadBalancingStrategy, maxSubscribersFields inherited from class MessageChannelSpec
channelFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PartitionedChanneldoGet()partitionKey(Function<Message<?>, Object> partitionKeyFunction) threadFactory(ThreadFactory threadFactory) workerQueueSize(int workerQueueSize) Provide a size of the queue in the partition executor's worker.Methods inherited from class LoadBalancingChannelSpec
failover, failoverStrategy, loadBalancer, maxSubscribersMethods inherited from class MessageChannelSpec
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
PartitionedChannelSpec
protected PartitionedChannelSpec(int partitionCount)
-
-
Method Details
-
partitionKey
-
threadFactory
-
workerQueueSize
Provide a size of the queue in the partition executor's worker. Default to zero.- Parameters:
workerQueueSize- the size of the partition executor's worker queue.- Returns:
- the spec.
- Since:
- 6.4.10
-
doGet
- Overrides:
doGetin classMessageChannelSpec<PartitionedChannelSpec, PartitionedChannel>
-