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 SubscribableChannel
s 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
Fields inherited from interface org.springframework.messaging.MessageChannel
INDEFINITE_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setBeanName
(String name) boolean
subscribe
(MessageHandler handler) boolean
unsubscribe
(MessageHandler handler)
-
Constructor Details
-
FixedSubscriberChannel
public FixedSubscriberChannel() -
FixedSubscriberChannel
-
-
Method Details
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
getBeanName
- Specified by:
getBeanName
in interfaceNamedComponent
-
send
- Specified by:
send
in interfaceMessageChannel
-
send
- Specified by:
send
in interfaceMessageChannel
-
subscribe
- Specified by:
subscribe
in interfaceSubscribableChannel
-
unsubscribe
- Specified by:
unsubscribe
in interfaceSubscribableChannel
-
getComponentType
- Specified by:
getComponentType
in interfaceNamedComponent
-
getComponentName
- Specified by:
getComponentName
in interfaceNamedComponent
-