public class SjmsConsumer
extends org.apache.camel.support.DefaultConsumer
Modifier and Type | Class and Description |
---|---|
protected class |
SjmsConsumer.MessageConsumerResourcesFactory
A pool of MessageConsumerResources created at the initialization of the associated consumer.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> |
consumers |
Constructor and Description |
---|
SjmsConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected javax.jms.MessageListener |
createMessageHandler(javax.jms.Session session)
Helper factory method used to create a MessageListener based on the MEP
|
protected void |
doStart() |
protected void |
doStop() |
int |
getAcknowledgementMode() |
protected ConnectionResource |
getConnectionResource()
Deprecated.
|
int |
getConsumerCount()
Returns the number of consumer listeners.
|
String |
getDestinationName()
The destination name for this consumer.
|
String |
getDurableSubscriptionId()
Gets the durable subscription Id.
|
SjmsEndpoint |
getEndpoint() |
String |
getMessageSelector()
Gets the JMS Message selector syntax.
|
protected ConnectionResource |
getOrCreateConnectionResource() |
int |
getTransactionBatchCount()
If transacted, returns the nubmer of messages to be processed before
committing the transaction.
|
long |
getTransactionBatchTimeout()
Returns the timeout value for batch transactions.
|
TransactionCommitStrategy |
getTransactionCommitStrategy()
Gets the commit strategy.
|
boolean |
isSharedJMSSession()
Use to determine if JMS session should be propagated to share with other SJMS endpoints.
|
boolean |
isSynchronous()
Use to determine whether or not to process exchanges synchronously.
|
boolean |
isTopic()
Flag set by the endpoint used by consumers and producers to determine if
the consumer is a JMS Topic.
|
boolean |
isTransacted()
Use to determine if transactions are enabled or disabled.
|
createUoW, doInit, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString
doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> consumers
public SjmsConsumer(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
public SjmsEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultConsumer
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultConsumer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultConsumer
Exception
protected javax.jms.MessageListener createMessageHandler(javax.jms.Session session)
session
- a session is only required if we are a transacted consumer@Deprecated protected ConnectionResource getConnectionResource()
getOrCreateConnectionResource()
protected ConnectionResource getOrCreateConnectionResource()
public int getAcknowledgementMode()
public boolean isTransacted()
public boolean isSharedJMSSession()
public boolean isSynchronous()
public String getDestinationName()
public int getConsumerCount()
public boolean isTopic()
public String getMessageSelector()
public String getDurableSubscriptionId()
public TransactionCommitStrategy getTransactionCommitStrategy()
public int getTransactionBatchCount()
public long getTransactionBatchTimeout()
Apache Camel