Class BroadcastPublishSubscribeSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<BroadcastPublishSubscribeSpec,BroadcastCapableChannel>
org.springframework.integration.dsl.BroadcastPublishSubscribeSpec
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<BroadcastCapableChannel>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,ComponentsRegistration
public class BroadcastPublishSubscribeSpec extends IntegrationComponentSpec<BroadcastPublishSubscribeSpec,BroadcastCapableChannel> implements ComponentsRegistration
An
IntegrationComponentSpec
for configuring sub-flow subscribers on the
provided BroadcastCapableChannel
.- Since:
- 5.3
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
BroadcastPublishSubscribeSpec(BroadcastCapableChannel channel)
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Object,java.lang.String>
getComponentsToRegister()
BroadcastPublishSubscribeSpec
subscribe(IntegrationFlow subFlow)
Configure aIntegrationFlow
to configure as a subscriber for the currentBroadcastCapableChannel
.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
-
Constructor Details
-
Method Details
-
subscribe
Configure aIntegrationFlow
to configure as a subscriber for the currentBroadcastCapableChannel
.- Parameters:
subFlow
- theIntegrationFlow
to configure as a subscriber for the currentBroadcastCapableChannel
.- Returns:
- the current spec
-
getComponentsToRegister
public java.util.Map<java.lang.Object,java.lang.String> getComponentsToRegister()- Specified by:
getComponentsToRegister
in interfaceComponentsRegistration
-