Class DefaultPartitioningInterceptor
java.lang.Object
org.springframework.cloud.stream.binding.DefaultPartitioningInterceptor
- All Implemented Interfaces:
org.springframework.messaging.support.ChannelInterceptor
public class DefaultPartitioningInterceptor
extends Object
implements org.springframework.messaging.support.ChannelInterceptor
- Since:
- 3.1
- Author:
- Oleg Zhurakousky
-
Constructor Summary
ConstructorDescriptionDefaultPartitioningInterceptor
(BindingProperties bindingProperties, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.Message<?>
preSend
(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) void
setPartitionCount
(int partitionCount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.messaging.support.ChannelInterceptor
afterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceive
-
Constructor Details
-
DefaultPartitioningInterceptor
public DefaultPartitioningInterceptor(BindingProperties bindingProperties, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
-
Method Details
-
setPartitionCount
public void setPartitionCount(int partitionCount) -
preSend
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) - Specified by:
preSend
in interfaceorg.springframework.messaging.support.ChannelInterceptor
-