@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 class| Modifier 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, setProjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListenerConfigcast, getBeanName, getFlowId, getProject, getStatus, processMessage, setFlowId, setProjectdestroy, initgetEntityId, getFlowId, getMetricsEngine, getProjectId, getProjectVersionprotected TransportListener<L extends ListenerConfig,C extends IngressConfig> listener
public final void initElement(org.springframework.context.ApplicationContext context)
initElement in class AbstractProcessingElementpublic 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 AbstractProcessingElementpublic 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 MetricsReportablegetAdditionalProperties in class AbstractProcessingElementCopyright © 2016–2019 AdroitLogic. All rights reserved.