@MetricsReporter public abstract class IngressConnectorElement<L extends ListenerConfig,C extends IngressConfig> extends AbstractProcessingElement implements XIngressConnectorElement<L,C>, MetricsReportable
IngressConnector
. All ingress connectors
must inherit this classModifier and Type | Field and Description |
---|---|
protected TransportListener<L,C> |
listener |
Constructor and Description |
---|
IngressConnectorElement() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAdditionalProperties()
Returns a map of additional properties to be set in the metrics records
|
C |
getIngressConfig() |
XIntegrationFlow |
getIntegrationFlow() |
XProcessingElement |
getProcessingElement() |
long |
getResponseTimeout() |
void |
initElement(org.springframework.context.ApplicationContext context) |
protected abstract TransportListener<L,C> |
newListener(org.springframework.context.ApplicationContext context)
Supplier implementations should just create the listener and return, initialization and starting of the
listener will be handled by the framework
|
protected abstract C |
populateIngressConfig() |
ExecutionResult |
process(XMessageContext messageContext) |
protected ExecutionResult |
processReceivedMessage(XMessageContext messageContext) |
ExecutionResult |
receiveMessage(XMessageContext messageContext) |
void |
setIntegrationFlow(XIntegrationFlow integrationFlow) |
void |
setProcessingElement(XProcessingElement processingElement) |
void |
start() |
void |
stop() |
destroy, destroyElement, getBeanName, getEntityId, getErrorHandler, getFlowId, getMetricsEngine, getProject, getProjectId, getProjectVersion, getResource, getServerConfig, getStatus, init, processMessage, setBeanName, setErrorHandler, setFlowId, setProject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getListenerConfig
cast, getBeanName, getFlowId, getProject, getStatus, processMessage, setFlowId, setProject
destroy, init
getEntityId, getFlowId, getMetricsEngine, getProjectId, getProjectVersion
protected TransportListener<L extends ListenerConfig,C extends IngressConfig> listener
public final void initElement(org.springframework.context.ApplicationContext context)
initElement
in class AbstractProcessingElement
public final C getIngressConfig()
getIngressConfig
in interface XIngressConnectorElement<L extends ListenerConfig,C extends IngressConfig>
protected abstract C populateIngressConfig()
public void setProcessingElement(XProcessingElement processingElement)
setProcessingElement
in interface XIngressConnectorElement<L extends ListenerConfig,C extends IngressConfig>
public final ExecutionResult receiveMessage(XMessageContext messageContext)
receiveMessage
in interface XIngressConnectorElement<L extends ListenerConfig,C extends IngressConfig>
protected ExecutionResult processReceivedMessage(XMessageContext messageContext)
public ExecutionResult process(XMessageContext messageContext)
process
in class AbstractProcessingElement
public XProcessingElement getProcessingElement()
protected abstract TransportListener<L,C> newListener(org.springframework.context.ApplicationContext context)
context
- the application context used for the creation of the listenerpublic long getResponseTimeout()
getResponseTimeout
in interface XIngressConnectorElement<L extends ListenerConfig,C extends IngressConfig>
public XIntegrationFlow getIntegrationFlow()
getIntegrationFlow
in interface XIngressConnectorElement<L extends ListenerConfig,C extends IngressConfig>
public void setIntegrationFlow(XIntegrationFlow integrationFlow)
public Map<String,String> getAdditionalProperties()
getAdditionalProperties
in interface MetricsReportable
getAdditionalProperties
in class AbstractProcessingElement
Copyright © 2016–2019 AdroitLogic. All rights reserved.