public class OpenSpacesMessageReceiver extends org.mule.transport.AbstractMessageReceiver implements SpaceDataEventListener
OpenSpacesMessageReceiver
is used to receive data from an GigaSpaces's space. It
implements SpaceDataEventListener and as such it register itself to Polling/Notify
SpaceListeningContainer.SpaceDataEventListener
Modifier and Type | Class and Description |
---|---|
protected static class |
OpenSpacesMessageReceiver.GigaSpaceWorker |
defaultInboundTransformers, defaultResponseTransformers, flowConstruct, listener, receiverKey, replyToHandler
Constructor and Description |
---|
OpenSpacesMessageReceiver(org.mule.api.transport.Connector connector,
org.mule.api.construct.FlowConstruct flowConstruct,
org.mule.api.endpoint.InboundEndpoint endpoint)
Creates a OpenSpacesMessageReceiver and resister it as a SpaceDataEventListener to the
Polling/Notify container that declared as umoEndpoint.EndpointURI.address.
|
OpenSpacesMessageReceiver(org.mule.api.transport.Connector connector,
org.mule.api.service.Service service,
org.mule.api.endpoint.InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected org.mule.api.MuleEvent |
doReceiveEvent(Object data,
GigaSpace gigaSpace,
org.springframework.transaction.TransactionStatus txStatus,
Object source) |
protected void |
doStart() |
protected void |
doStop() |
void |
onEvent(Object data,
GigaSpace gigaSpace,
org.springframework.transaction.TransactionStatus txStatus,
Object source)
An event callback with the actual data object of the event.
|
applyInboundTransformers, applyResponseTransformers, connectHandler, createExecutionTemplate, createLifecycleManager, createMuleEvent, doStartHandler, getConnectEventId, getConnectionDescription, getEndpoint, getEndpointURI, getFlowConstruct, getReceiverKey, getReplyToHandler, getWorkManager, handleUnacceptedFilter, initialise, processMessage, propagateRootMessageIdProperty, routeEvent, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setEndpoint, setListener, setReceiverKey, shouldConsumeInEveryNode, toString, warnIfMuleClientSendUsed
activate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, getConnectEventId, getConnector, getLifecycleState, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, validate, validateConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createMuleMessage, createMuleMessage
public OpenSpacesMessageReceiver(org.mule.api.transport.Connector connector, org.mule.api.construct.FlowConstruct flowConstruct, org.mule.api.endpoint.InboundEndpoint endpoint) throws org.mule.api.lifecycle.CreateException
connector
- the endpoint that created this listenerendpoint
- the provider contains the endpointUri on which the receiver will listen on.
The URI structure must be declared as the following os://org.mule.api.lifecycle.CreateException
ImmutableEndpoint
public OpenSpacesMessageReceiver(org.mule.api.transport.Connector connector, org.mule.api.service.Service service, org.mule.api.endpoint.InboundEndpoint endpoint) throws org.mule.api.lifecycle.CreateException
org.mule.api.lifecycle.CreateException
public void onEvent(Object data, GigaSpace gigaSpace, org.springframework.transaction.TransactionStatus txStatus, Object source)
onEvent
in interface SpaceDataEventListener
data
- The actual data object of the eventgigaSpace
- A GigaSpace instance that can be used to perofrm additional operations
against the spacetxStatus
- An optional transaction status allowing to rollback a transaction
programmaticallysource
- Optional additional data or the actual source event data object (where
relevant)protected org.mule.api.MuleEvent doReceiveEvent(Object data, GigaSpace gigaSpace, org.springframework.transaction.TransactionStatus txStatus, Object source) throws Exception
Exception
protected void doStart() throws org.mule.api.MuleException
doStart
in class org.mule.transport.AbstractTransportMessageHandler
org.mule.api.MuleException
protected void doDisconnect() throws Exception
doDisconnect
in class org.mule.transport.AbstractTransportMessageHandler
Exception
protected void doStop() throws org.mule.api.MuleException
doStop
in class org.mule.transport.AbstractMessageReceiver
org.mule.api.MuleException
protected void doConnect() throws Exception
doConnect
in class org.mule.transport.AbstractTransportMessageHandler
Exception
protected void doDispose()
doDispose
in class org.mule.transport.AbstractMessageReceiver
Copyright © GigaSpaces.