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
Constructors Constructor Description DefaultPartitioningInterceptor(BindingProperties bindingProperties, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.messaging.Message<?>
preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
void
setPartitionCount(int partitionCount)
-
-
-
Constructor Detail
-
DefaultPartitioningInterceptor
public DefaultPartitioningInterceptor(BindingProperties bindingProperties, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
-
Method Detail
-
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
-
-