public class SjmsConsumer extends DefaultConsumer
| Modifier and Type | Class and Description |
|---|---|
protected class |
SjmsConsumer.MessageConsumerPool
A pool of MessageConsumerResources created at the initialization of the associated consumer.
|
protected class |
SjmsConsumer.MessageConsumerResources |
| Modifier and Type | Field and Description |
|---|---|
protected SjmsConsumer.MessageConsumerPool |
consumers |
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
SjmsConsumer(Endpoint endpoint,
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()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
int |
getAcknowledgementMode() |
protected ConnectionResource |
getConnectionResource() |
int |
getConsumerCount()
Returns the number of consumer listeners.
|
java.lang.String |
getDestinationName()
The destination name for this consumer.
|
java.lang.String |
getDurableSubscriptionId()
Gets the durable subscription Id.
|
SjmsEndpoint |
getEndpoint()
Gets the endpoint this
Consumer consumes from. |
java.lang.String |
getMessageSelector()
Gets the JMS Message selector syntax.
|
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 |
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, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected SjmsConsumer.MessageConsumerPool consumers
public SjmsEndpoint getEndpoint()
ConsumerConsumer consumes from.getEndpoint in interface ConsumergetEndpoint in class DefaultConsumerprotected void doStart()
throws java.lang.Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class DefaultConsumerjava.lang.ExceptionServiceSupport.doStop()protected void doStop()
throws java.lang.Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class DefaultConsumerjava.lang.ExceptionServiceSupport.doStart()protected javax.jms.MessageListener createMessageHandler(javax.jms.Session session)
session - a session is only required if we are a transacted consumerprotected ConnectionResource getConnectionResource()
public int getAcknowledgementMode()
public boolean isTransacted()
public boolean isSynchronous()
public java.lang.String getDestinationName()
public int getConsumerCount()
public boolean isTopic()
public java.lang.String getMessageSelector()
public java.lang.String getDurableSubscriptionId()
public TransactionCommitStrategy getTransactionCommitStrategy()
public int getTransactionBatchCount()
public long getTransactionBatchTimeout()
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.