Class FixedSubscriberChannel
java.lang.Object
org.springframework.integration.channel.FixedSubscriberChannel
- All Implemented Interfaces:
Aware,BeanNameAware,NamedComponent,MessageChannel,SubscribableChannel
public final class FixedSubscriberChannel extends Object implements SubscribableChannel, BeanNameAware, NamedComponent
Specialized
SubscribableChannel for a single final subscriber set up during bean instantiation (unlike
other SubscribableChannels where the MessageHandler is subscribed when the endpoint
is started). This channel does not support interceptors or data types.
Note: Stopping (unsubscribe(MessageHandler)) the subscribed (MessageHandler) has no effect.
- Since:
- 4.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FixedSubscriberChannel()FixedSubscriberChannel(MessageHandler handler) -
Method Summary
Modifier and Type Method Description StringgetBeanName()StringgetComponentName()StringgetComponentType()booleansend(Message<?> message)booleansend(Message<?> message, long timeout)voidsetBeanName(String name)booleansubscribe(MessageHandler handler)booleanunsubscribe(MessageHandler handler)
-
Constructor Details
-
FixedSubscriberChannel
public FixedSubscriberChannel() -
FixedSubscriberChannel
-
-
Method Details
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
getBeanName
- Specified by:
getBeanNamein interfaceNamedComponent
-
send
- Specified by:
sendin interfaceMessageChannel
-
send
- Specified by:
sendin interfaceMessageChannel
-
subscribe
- Specified by:
subscribein interfaceSubscribableChannel
-
unsubscribe
- Specified by:
unsubscribein interfaceSubscribableChannel
-
getComponentType
- Specified by:
getComponentTypein interfaceNamedComponent
-
getComponentName
- Specified by:
getComponentNamein interfaceNamedComponent
-