GigaSpaces XAP 7.0 API

org.openspaces.esb.mule.queue
Class OpenSpacesQueueMessageReceiver

java.lang.Object
  extended by org.mule.transport.AbstractConnectable
      extended by org.mule.transport.AbstractMessageReceiver
          extended by org.mule.transport.AbstractPollingMessageReceiver
              extended by org.mule.transport.TransactedPollingMessageReceiver
                  extended by org.openspaces.esb.mule.queue.OpenSpacesQueueMessageReceiver
All Implemented Interfaces:
ExceptionListener, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.transport.Connectable, org.mule.api.transport.MessageReceiver

public class OpenSpacesQueueMessageReceiver
extends org.mule.transport.TransactedPollingMessageReceiver

Receives (takes) a message from an internal queue. The queue is a virtualized queue represented by the InternalQueueEntry with its endpoint address set (and not the message).

Author:
kimchy

Nested Class Summary
protected static class OpenSpacesQueueMessageReceiver.ReceiverWorker
           
 
Nested classes/interfaces inherited from class org.mule.transport.TransactedPollingMessageReceiver
org.mule.transport.TransactedPollingMessageReceiver.MessageProcessorWorker
 
Field Summary
 
Fields inherited from class org.mule.transport.AbstractPollingMessageReceiver
DEFAULT_POLL_FREQUENCY, DEFAULT_POLL_TIMEUNIT, DEFAULT_STARTUP_DELAY, schedules
 
Fields inherited from class org.mule.transport.AbstractMessageReceiver
receiverKey, responseEndpoint, service
 
Fields inherited from class org.mule.transport.AbstractConnectable
connected, disposed, endpoint, logger, retryTemplate, started, startOnConnect
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Constructor Summary
OpenSpacesQueueMessageReceiver(org.mule.api.transport.Connector connector, org.mule.api.service.Service service, org.mule.api.endpoint.InboundEndpoint endpoint)
           
 
Method Summary
protected  org.mule.transport.PollingReceiverWorker createWork()
           
protected  void doConnect()
           
protected  void doDisconnect()
           
protected  void doDispose()
           
protected  List getMessages()
           
 Object onCall(org.mule.api.MuleMessage message, boolean synchronous)
           
protected  void processMessage(Object msg)
           
 
Methods inherited from class org.mule.transport.TransactedPollingMessageReceiver
doStart, isReceiveMessagesInTransaction, isUseMultipleTransactedReceivers, poll, setReceiveMessagesInTransaction, setUseMultipleTransactedReceivers
 
Methods inherited from class org.mule.transport.AbstractPollingMessageReceiver
doStop, getFrequency, getTimeUnit, schedule, setFrequency, setTimeUnit, unschedule
 
Methods inherited from class org.mule.transport.AbstractMessageReceiver
dispose, getConnectEventId, getConnectionDescription, getEndpoint, getEndpointURI, getListener, getReceiverKey, getService, getWorkManager, handleUnacceptedFilter, initialise, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setService, toString
 
Methods inherited from class org.mule.transport.AbstractConnectable
activate, connect, disconnect, disposeAndLogException, doInitialise, exceptionThrown, getConnectEventId, getConnector, handleException, isConnected, isDoThreading, isStarted, passivate, setEndpoint, start, stop, validate, validateConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.transport.Connectable
connect, disconnect, isConnected, validateConnection
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 

Constructor Detail

OpenSpacesQueueMessageReceiver

public OpenSpacesQueueMessageReceiver(org.mule.api.transport.Connector connector,
                                      org.mule.api.service.Service service,
                                      org.mule.api.endpoint.InboundEndpoint endpoint)
                               throws org.mule.api.lifecycle.CreateException
Throws:
org.mule.api.lifecycle.CreateException
Method Detail

doConnect

protected void doConnect()
                  throws Exception
Overrides:
doConnect in class org.mule.transport.AbstractConnectable
Throws:
Exception

doDispose

protected void doDispose()
Overrides:
doDispose in class org.mule.transport.AbstractConnectable

doDisconnect

protected void doDisconnect()
                     throws Exception
Overrides:
doDisconnect in class org.mule.transport.AbstractConnectable
Throws:
Exception

onCall

public Object onCall(org.mule.api.MuleMessage message,
                     boolean synchronous)
              throws org.mule.api.MuleException
Throws:
org.mule.api.MuleException

getMessages

protected List getMessages()
                    throws Exception
Specified by:
getMessages in class org.mule.transport.TransactedPollingMessageReceiver
Throws:
Exception

processMessage

protected void processMessage(Object msg)
                       throws Exception
Specified by:
processMessage in class org.mule.transport.TransactedPollingMessageReceiver
Throws:
Exception

createWork

protected org.mule.transport.PollingReceiverWorker createWork()
Overrides:
createWork in class org.mule.transport.AbstractPollingMessageReceiver

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.