Class GenericEventBasedConsumer
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.generic.GenericEventBasedConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Stringprotected Stringstatic final Stringprotected Propertiesprotected booleanprotected org.apache.synapse.core.SynapseEnvironment -
Constructor Summary
ConstructorsConstructorDescriptionGenericEventBasedConsumer(Properties properties, String name, org.apache.synapse.core.SynapseEnvironment synapseEnvironment, String injectingSeq, String onErrorSeq, boolean coordination, boolean sequential) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddestroy()This methods needs to be implemented when terminating the inboundprotected booleaninjectMessage(InputStream in, String contentType) protected booleaninjectMessage(String strMessage, String contentType) static booleanisEventBasedInboundEndpoint(org.apache.synapse.inbound.InboundProcessorParams inboundParameters) States whether generic endpoint is a eventBased Return true; if eventBasedabstract voidlisten()This methods needs to be implemented when implementing the custom inboundprotected voidAsks the runtime to calllisten()again after the consumer tore itself down because of an unrecoverable failure.
-
Field Details
-
PARAM_INBOUND_ENDPOINT_BEHAVIOR_EVENT_BASED
- See Also:
-
properties
-
name
-
synapseEnvironment
protected org.apache.synapse.core.SynapseEnvironment synapseEnvironment -
injectingSeq
-
onErrorSeq
-
coordination
protected boolean coordination -
sequential
protected boolean sequential
-
-
Constructor Details
-
GenericEventBasedConsumer
public GenericEventBasedConsumer(Properties properties, String name, org.apache.synapse.core.SynapseEnvironment synapseEnvironment, String injectingSeq, String onErrorSeq, boolean coordination, boolean sequential)
-
-
Method Details
-
listen
public abstract void listen()This methods needs to be implemented when implementing the custom inbound -
destroy
public abstract void destroy()This methods needs to be implemented when terminating the inbound -
requestRelisten
protected void requestRelisten()Asks the runtime to calllisten()again after the consumer tore itself down because of an unrecoverable failure. WSO2 Micro Integrator, on which event based connectors built against this module run, listens again on the next task cycle of the inbound endpoint, on the node that runs it. This runtime does not restart the consumer; it stays down until the inbound endpoint is redeployed. -
injectMessage
-
injectMessage
-
isEventBasedInboundEndpoint
public static boolean isEventBasedInboundEndpoint(org.apache.synapse.inbound.InboundProcessorParams inboundParameters) States whether generic endpoint is a eventBased Return true; if eventBased- Parameters:
inboundParameters- Inbound Parameters for endpoint- Returns:
- boolean
-