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,reactor.util.function.Tuple2<F,H>> implements ComponentsRegistration
IntegrationComponentSpec
for endpoints.Modifier and Type | Field and Description |
---|---|
protected Map<Object,String> |
componentsToRegister |
protected F |
endpointFactoryBean |
protected H |
handler |
logger, PARSER, target
Modifier | Constructor and Description |
---|---|
protected |
EndpointSpec(H handler) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertHandler() |
abstract S |
autoStartup(boolean autoStartup) |
protected reactor.util.function.Tuple2<F,H> |
doGet() |
Map<Object,String> |
getComponentsToRegister() |
S |
id(String id)
Configure the component identifier.
|
abstract S |
phase(int phase) |
S |
poller(java.util.function.Function<PollerFactory,PollerSpec> pollers) |
abstract S |
poller(PollerMetadata pollerMetadata) |
S |
poller(PollerSpec pollerMetadataSpec) |
_this, get, getId, getObject, getObjectType, isSingleton
protected H handler
protected F extends org.springframework.beans.factory.BeanNameAware endpointFactoryBean
protected EndpointSpec(H handler)
public S id(String id)
IntegrationComponentSpec
beanName
to register the
bean in the application context for this component.id
in class IntegrationComponentSpec<S extends EndpointSpec<S,F,H>,reactor.util.function.Tuple2<F extends org.springframework.beans.factory.BeanNameAware,H>>
id
- the id.public S poller(java.util.function.Function<PollerFactory,PollerSpec> pollers)
pollers
- the pollersAbstractPollingEndpoint
,
PollerFactory
public S poller(PollerSpec pollerMetadataSpec)
pollerMetadataSpec
- the pollerMetadataSpecAbstractPollingEndpoint
,
PollerSpec
public abstract S poller(PollerMetadata pollerMetadata)
pollerMetadata
- the pollerMetadataAbstractPollingEndpoint
public abstract S phase(int phase)
phase
- the phase.SmartLifecycle
public abstract S autoStartup(boolean autoStartup)
autoStartup
- the autoStartup.SmartLifecycle
public Map<Object,String> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
protected reactor.util.function.Tuple2<F,H> doGet()
doGet
in class IntegrationComponentSpec<S extends EndpointSpec<S,F,H>,reactor.util.function.Tuple2<F extends org.springframework.beans.factory.BeanNameAware,H>>
protected void assertHandler()