S - the target ConsumerEndpointSpec implementation type.F - the target BeanNameAware implementation type.H - the target MessageHandler implementation type.public abstract class EndpointSpec<S extends EndpointSpec<S,F,H>,F extends org.springframework.beans.factory.BeanNameAware,H> extends IntegrationComponentSpec<S,Tuple2<F,H>> implements ComponentsRegistration
IntegrationComponentSpec for endpoints.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<java.lang.Object> |
componentToRegister |
id, logger, PARSER, target| Modifier | Constructor and Description |
|---|---|
protected |
EndpointSpec(H handler) |
| Modifier and Type | Method and Description |
|---|---|
abstract S |
autoStartup(boolean autoStartup) |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
S |
id(java.lang.String id)
Configure the component identifier.
|
abstract S |
phase(int phase) |
S |
poller(Function<PollerFactory,PollerSpec> pollers) |
abstract S |
poller(org.springframework.integration.scheduling.PollerMetadata pollerMetadata) |
S |
poller(PollerSpec pollerMetadataSpec) |
_this, doGet, get, getId, getObject, getObjectType, isSingletonprotected final java.util.Collection<java.lang.Object> componentToRegister
protected EndpointSpec(H handler)
public S id(java.lang.String id)
IntegrationComponentSpecbeanName to register the
bean in the application context for this component.id in class IntegrationComponentSpec<S extends EndpointSpec<S,F,H>,Tuple2<F extends org.springframework.beans.factory.BeanNameAware,H>>id - the id.public abstract S phase(int phase)
phase - the phase.SmartLifecyclepublic abstract S autoStartup(boolean autoStartup)
autoStartup - the autoStartup.SmartLifecyclepublic abstract S poller(org.springframework.integration.scheduling.PollerMetadata pollerMetadata)
pollerMetadata - the pollerMetadataAbstractPollingEndpointpublic S poller(Function<PollerFactory,PollerSpec> pollers)
pollers - the pollersAbstractPollingEndpoint,
PollerFactorypublic S poller(PollerSpec pollerMetadataSpec)
pollerMetadataSpec - the pollerMetadataSpecAbstractPollingEndpoint,
PollerSpecpublic java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister in interface ComponentsRegistration