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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setBeanName
(String name) boolean
subscribe
(MessageHandler handler) boolean
unsubscribe
(MessageHandler handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName
-
Constructor Details
-
FixedSubscriberChannel
public FixedSubscriberChannel() -
FixedSubscriberChannel
-
-
Method Details
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
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
-