Class SourcePollingChannelAdapterSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
org.springframework.integration.dsl.EndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
org.springframework.integration.dsl.SourcePollingChannelAdapterSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<reactor.util.function.Tuple2<SourcePollingChannelAdapterFactoryBean,MessageSource<?>>>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class SourcePollingChannelAdapterSpec extends EndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
SourcePollingChannelAdapterSpec(MessageSource<?> messageSource)
-
Method Summary
Modifier and Type Method Description SourcePollingChannelAdapterSpec
autoStartup(boolean autoStartup)
SourcePollingChannelAdapterSpec
phase(int phase)
SourcePollingChannelAdapterSpec
poller(PollerMetadata pollerMetadata)
SourcePollingChannelAdapterSpec
role(String role)
Specify the role for the endpoint.Methods inherited from class org.springframework.integration.dsl.EndpointSpec
assertHandler, doGet, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
phase
- Specified by:
phase
in classEndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
- Parameters:
phase
- the phase.- Returns:
- the endpoint spec.
- See Also:
SmartLifecycle
-
autoStartup
- Specified by:
autoStartup
in classEndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
- Parameters:
autoStartup
- the autoStartup.- Returns:
- the endpoint spec
- See Also:
SmartLifecycle
-
poller
- Specified by:
poller
in classEndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
- Parameters:
pollerMetadata
- the pollerMetadata- Returns:
- the endpoint spec.
- See Also:
AbstractPollingEndpoint
-
role
Description copied from class:EndpointSpec
Specify the role for the endpoint. Such endpoints can be started/stopped as a group.- Specified by:
role
in classEndpointSpec<SourcePollingChannelAdapterSpec,SourcePollingChannelAdapterFactoryBean,MessageSource<?>>
- Parameters:
role
- the role for this endpoint.- Returns:
- the endpoint spec
- See Also:
SmartLifecycle
,SmartLifecycleRoleController
-