public class OpenSpacesQueueConnector
extends org.mule.transport.AbstractConnector
implements org.springframework.context.ApplicationContextAware
GigaSpace instance that
will be used to communicate with the Space by the dispatcher, receiver, and requestor.
If the giga space reference is defined (setGigaSpace(String), will use it to find the
GigaSpace instance defined. If it is not defined, will try to get
GigaSpace instances from Spring and if there is only one defined, will used it.
Also holds other attributes related to the written and read entry. Such as if the entry will be a fifo one, and if it will be persisted.
| Modifier and Type | Field and Description |
|---|---|
static String |
OS_QUEUE |
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect| Constructor and Description |
|---|
OpenSpacesQueueConnector(org.mule.api.MuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected void |
doInitialise() |
protected void |
doStart() |
protected void |
doStop() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
Integer |
getBatchSize() |
String |
getGigaSpace()
Returns the GigaSpace bean id reference to be retrieved from Spring.
|
GigaSpace |
getGigaSpaceObj() |
String |
getProtocol() |
protected org.mule.api.transport.MessageReceiver |
getReceiverByEndpoint(org.mule.api.endpoint.EndpointURI endpointUri) |
long |
getTimeout()
The timeout waiting for a message on the queue in milliseconds.
|
boolean |
isFifo()
Should the entries written to the virtualized queue be fifo or not.
|
boolean |
isPersistent()
Should the entries written to the Space will be persistent to a backend storage or not.
|
boolean |
isResponseEnabled() |
OpenSpacesQueueObject |
newQueueEntry(String queueName)
Creates a new entry to put in the queue
|
OpenSpacesQueueObject |
newQueueTemplate(String queueName)
Creates a new template for querying the queue
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Injected by Spring.
|
void |
setBatchSize(Integer batchSize) |
void |
setFifo(boolean fifo)
Should the entries written to the virtualized queue be fifo or not.
|
void |
setGigaSpace(String gigaSpaceRef)
Sets the GigaSpace bean id reference to be retrieved from Spring.
|
void |
setPersistent(boolean persistent)
Should the entries written to the Space will be persistent to a backend storage or not.
|
void |
setTimeout(long timeout)
The timeout waiting for a message on the queue in milliseconds.
|
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStartedpublic static final String OS_QUEUE
public OpenSpacesQueueConnector(org.mule.api.MuleContext context)
public String getProtocol()
getProtocol in interface org.mule.api.transport.Connectorpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
GigaSpace
instance from.setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setGigaSpace(String gigaSpaceRef)
public String getGigaSpace()
public boolean isFifo()
false.public void setFifo(boolean fifo)
false.public boolean isPersistent()
false (as many times a backup space is enough).public void setPersistent(boolean persistent)
false (as many times a backup space is enough).public long getTimeout()
public void setTimeout(long timeout)
public Integer getBatchSize()
public void setBatchSize(Integer batchSize)
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.transport.AbstractConnectororg.mule.api.lifecycle.InitialisationExceptionprotected void doDispose()
doDispose in class org.mule.transport.AbstractConnectorprotected void doStart()
throws org.mule.api.MuleException
doStart in class org.mule.transport.AbstractConnectororg.mule.api.MuleExceptionprotected void doStop()
throws org.mule.api.MuleException
doStop in class org.mule.transport.AbstractConnectororg.mule.api.MuleExceptionprotected void doConnect()
throws Exception
doConnect in class org.mule.transport.AbstractConnectorExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class org.mule.transport.AbstractConnectorExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
public GigaSpace getGigaSpaceObj()
protected org.mule.api.transport.MessageReceiver getReceiverByEndpoint(org.mule.api.endpoint.EndpointURI endpointUri)
throws org.mule.api.endpoint.EndpointException
org.mule.api.endpoint.EndpointExceptionpublic OpenSpacesQueueObject newQueueTemplate(String queueName)
public OpenSpacesQueueObject newQueueEntry(String queueName)
public boolean isResponseEnabled()
isResponseEnabled in interface org.mule.api.transport.ConnectorisResponseEnabled in class org.mule.transport.AbstractConnectorCopyright © GigaSpaces.