@UriEndpoint(scheme="sjms",
title="Simple JMS",
syntax="sjms:destinationType:destinationName",
consumerClass=SjmsConsumer.class,
label="messaging")
public class SjmsEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SjmsEndpoint() |
SjmsEndpoint(String uri,
org.apache.camel.Component component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
SessionAcknowledgementType |
getAcknowledgementMode()
Returns the configured acknowledgementMode.
|
SjmsComponent |
getComponent() |
ConnectionResource |
getConnectionResource() |
int |
getConsumerCount()
Returns the number of consumer listeners for this endpoint.
|
DestinationCreationStrategy |
getDestinationCreationStrategy() |
String |
getDestinationName() |
String |
getDurableSubscriptionId()
Gets the durable subscription Id.
|
KeyFormatStrategy |
getJmsKeyFormatStrategy() |
String |
getMessageSelector()
Returns the JMS Message selector syntax used to refine the messages being
consumed.
|
String |
getNamedReplyTo()
Returns the reply to destination name used for InOut producer endpoints.
|
int |
getProducerCount()
Returns the number of consumer listeners for this endpoint.
|
long |
getResponseTimeOut()
Returns the InOut response timeout.
|
int |
getSessionCount()
Deprecated.
|
org.apache.camel.spi.HeaderFilterStrategy |
getSjmsHeaderFilterStrategy() |
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.
|
long |
getTtl()
Returns the Time To Live set on this endpoint.
|
boolean |
isAllowNullBody() |
boolean |
isAsyncStartListener() |
boolean |
isAsyncStopListener() |
boolean |
isMultipleConsumersSupported() |
boolean |
isPersistent()
Use to determine if the enpoint has message persistence enabled or
disabled.
|
boolean |
isPrefillPool() |
boolean |
isSingleton() |
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 endpoint is a JMS Topic.
|
boolean |
isTransacted()
Use to determine if transactions are enabled or disabled.
|
void |
setAcknowledgementMode(SessionAcknowledgementType acknowledgementMode)
Sets the acknowledgementMode configured on this endpoint.
|
void |
setAllowNullBody(boolean allowNullBody) |
void |
setAsyncStartListener(boolean asyncStartListener) |
void |
setAsyncStopListener(boolean asyncStopListener) |
void |
setConsumerCount(int consumerCount)
Sets the number of consumer listeners used for this endpoint.
|
void |
setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy) |
void |
setDestinationName(String destinationName)
DestinationName is a JMS queue or topic name.
|
void |
setDurableSubscriptionId(String durableSubscriptionId)
Sets the durable subscription Id required for durable topics.
|
void |
setMessageSelector(String messageSelector)
Sets the JMS Message selector syntax.
|
void |
setNamedReplyTo(String namedReplyTo)
Sets the reply to destination name used for InOut producer endpoints.
|
void |
setPersistent(boolean persistent)
Flag used to enable/disable message persistence.
|
void |
setPrefillPool(boolean prefillPool) |
void |
setProducerCount(int producerCount)
Sets the number of producers used for this endpoint.
|
void |
setResponseTimeOut(long responseTimeOut)
Sets the amount of time we should wait before timing out a InOut
response.
|
void |
setSessionCount(int sessionCount)
Deprecated.
|
void |
setSynchronous(boolean synchronous)
Flag can be set to enable/disable synchronous exchange processing.
|
void |
setTransacted(boolean transacted)
Enable/disable flag for transactions
|
void |
setTransactionBatchCount(int transactionBatchCount)
If transacted sets the number of messages to process before committing a
transaction.
|
void |
setTransactionBatchTimeout(long transactionBatchTimeout)
Sets timeout value for batch transactions.
|
void |
setTransactionCommitStrategy(TransactionCommitStrategy transactionCommitStrategy)
Sets the commit strategy.
|
void |
setTtl(long ttl)
Flag used to adjust the Time To Live value of produced messages.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic SjmsEndpoint()
public SjmsEndpoint(String uri, org.apache.camel.Component component)
public SjmsComponent getComponent()
getComponent in class org.apache.camel.impl.DefaultEndpointprotected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultEndpointExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultEndpointExceptionpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic void setDestinationName(String destinationName)
public String getDestinationName()
public ConnectionResource getConnectionResource()
public org.apache.camel.spi.HeaderFilterStrategy getSjmsHeaderFilterStrategy()
public KeyFormatStrategy getJmsKeyFormatStrategy()
public boolean isSynchronous()
isSynchronous in class org.apache.camel.impl.DefaultEndpointpublic void setSynchronous(boolean synchronous)
setSynchronous in class org.apache.camel.impl.DefaultEndpointsynchronous - true to process synchronously, default is truepublic SessionAcknowledgementType getAcknowledgementMode()
public void setAcknowledgementMode(SessionAcknowledgementType acknowledgementMode)
acknowledgementMode - default is
SessionAcknowledgementType.AUTO_ACKNOWLEDGEpublic boolean isTopic()
@Deprecated public int getSessionCount()
@Deprecated public void setSessionCount(int sessionCount)
sessionCount - the number of Session instances, default is 1public int getProducerCount()
public void setProducerCount(int producerCount)
producerCount - the number of producers for this endpoint, default
is 1public int getConsumerCount()
public void setConsumerCount(int consumerCount)
consumerCount - the number of consumers for this endpoint, default
is 1public long getTtl()
public void setTtl(long ttl)
ttl - a new TTL, default is -1 (disabled)public boolean isPersistent()
public void setPersistent(boolean persistent)
persistent - true if persistent, default is truepublic String getDurableSubscriptionId()
public void setDurableSubscriptionId(String durableSubscriptionId)
durableSubscriptionId - durable subscription Id or nullpublic long getResponseTimeOut()
public void setResponseTimeOut(long responseTimeOut)
responseTimeOut - response timeoutpublic String getMessageSelector()
public void setMessageSelector(String messageSelector)
messageSelector - Message selector syntax or nullpublic int getTransactionBatchCount()
public void setTransactionBatchCount(int transactionBatchCount)
transactionBatchCount - number of messages to process before
committing, default is 1public long getTransactionBatchTimeout()
public void setTransactionBatchTimeout(long transactionBatchTimeout)
transactionBatchTimeout - public TransactionCommitStrategy getTransactionCommitStrategy()
public void setTransactionCommitStrategy(TransactionCommitStrategy transactionCommitStrategy)
transactionCommitStrategy - commit strategy to use when processing
transacted messagespublic boolean isTransacted()
public void setTransacted(boolean transacted)
transacted - true if transacted, otherwise falsepublic String getNamedReplyTo()
public void setNamedReplyTo(String namedReplyTo)
namedReplyTo - the JMS reply to destination namepublic void setAsyncStartListener(boolean asyncStartListener)
public void setAsyncStopListener(boolean asyncStopListener)
public boolean isAsyncStartListener()
public boolean isAsyncStopListener()
public boolean isPrefillPool()
public void setPrefillPool(boolean prefillPool)
public DestinationCreationStrategy getDestinationCreationStrategy()
public void setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy)
public boolean isAllowNullBody()
public void setAllowNullBody(boolean allowNullBody)
Apache Camel