|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.component.sjms.SjmsConsumer
public class SjmsConsumer
The SjmsConsumer is the base class for the SJMS MessageListener pool.
| Nested Class Summary | |
|---|---|
protected class |
SjmsConsumer.MessageConsumerPool
A pool of MessageConsumerResources created at the initialization of the associated consumer. |
protected class |
SjmsConsumer.MessageConsumerResources
|
| Field Summary | |
|---|---|
protected SjmsConsumer.MessageConsumerPool |
consumers
|
| Fields inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
log |
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
SjmsConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor)
|
|
| Method Summary | |
|---|---|
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()
|
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 SessionPool |
getSessionPool()
|
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. |
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toString |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
|---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Field Detail |
|---|
protected SjmsConsumer.MessageConsumerPool consumers
| Constructor Detail |
|---|
public SjmsConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor)
| Method Detail |
|---|
public SjmsEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.ConsumergetEndpoint in class org.apache.camel.impl.DefaultConsumer
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultConsumerException
protected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultConsumerExceptionprotected javax.jms.MessageListener createMessageHandler(javax.jms.Session session)
session - a session is only required if we are a transacted consumer
protected ConnectionResource getConnectionResource()
protected SessionPool getSessionPool()
public int getAcknowledgementMode()
public boolean isTransacted()
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||