public abstract class SjmsProducer
extends org.apache.camel.support.DefaultAsyncProducer
Modifier and Type | Class and Description |
---|---|
protected class |
SjmsProducer.CloseProducerCallback |
protected class |
SjmsProducer.MessageProducerResourcesFactory
The
MessageProducerResources pool for all SjmsProducer
classes. |
protected static interface |
SjmsProducer.ReleaseProducerCallback |
protected class |
SjmsProducer.ReturnProducerCallback |
Constructor and Description |
---|
SjmsProducer(org.apache.camel.Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected javax.jms.Session |
createSession() |
protected MessageProducerResources |
doCreateProducerModel(javax.jms.Session session) |
protected void |
doStart() |
protected void |
doStop() |
int |
getAcknowledgeMode()
Gets the acknowledgment mode for this instance of DestinationProducer.
|
protected TransactionCommitStrategy |
getCommitStrategy()
Gets commitStrategy for this instance of SjmsProducer.
|
protected ConnectionResource |
getConnectionResource()
Deprecated.
|
int |
getConsumerCount()
Gets consumerCount for this instance of SjmsProducer.
|
String |
getDestinationName()
Gets the destinationName for this instance of DestinationProducer.
|
SjmsEndpoint |
getEndpoint() |
ExecutorService |
getExecutor()
Gets the executor for this instance of SjmsProducer.
|
String |
getNamedReplyTo()
Returns the named reply to value for this producer
|
protected ConnectionResource |
getOrCreateConnectionResource() |
int |
getProducerCount()
Gets the producerCount for this instance of SjmsProducer.
|
org.apache.commons.pool.impl.GenericObjectPool<MessageProducerResources> |
getProducers()
Gets the MessageProducerPool value of producers for this instance of
SjmsProducer.
|
String |
getReplyTo()
Gets the replyTo for this instance of DestinationProducer.
|
long |
getResponseTimeOut()
Gets responseTimeOut for this instance of SjmsProducer.
|
long |
getTtl()
Gets the ttl for this instance of SjmsProducer.
|
boolean |
isEndpointTransacted()
Test to determine if this endpoint should use a JMS Transaction.
|
boolean |
isPersistent()
Gets the boolean value of persistent for this instance of SjmsProducer.
|
boolean |
isSharedJMSSession()
Test to determine if this endpoint should share a JMS Session with other SJMS endpoints.
|
boolean |
isSynchronous()
Gets the synchronous value for this instance of DestinationProducer.
|
boolean |
isTopic()
Test to verify if this endpoint is a JMS Topic or Queue.
|
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
abstract void |
sendMessage(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
MessageProducerResources producer,
SjmsProducer.ReleaseProducerCallback releaseProducerCallback) |
void |
setProducers(org.apache.commons.pool.impl.GenericObjectPool<MessageProducerResources> producers)
Sets the producer pool for this instance of SjmsProducer.
|
createExchange, isSingleton, toString
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultProducer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultProducer
Exception
public SjmsEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultProducer
protected MessageProducerResources doCreateProducerModel(javax.jms.Session session) throws Exception
Exception
public abstract void sendMessage(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, MessageProducerResources producer, SjmsProducer.ReleaseProducerCallback releaseProducerCallback) throws Exception
Exception
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
@Deprecated protected ConnectionResource getConnectionResource()
getOrCreateConnectionResource()
protected ConnectionResource getOrCreateConnectionResource()
public int getAcknowledgeMode()
public boolean isSynchronous()
public String getReplyTo()
public String getDestinationName()
public void setProducers(org.apache.commons.pool.impl.GenericObjectPool<MessageProducerResources> producers)
producers
- A MessageProducerPoolpublic org.apache.commons.pool.impl.GenericObjectPool<MessageProducerResources> getProducers()
public boolean isTopic()
public boolean isEndpointTransacted()
public boolean isSharedJMSSession()
public String getNamedReplyTo()
public int getProducerCount()
public int getConsumerCount()
public ExecutorService getExecutor()
public long getTtl()
public boolean isPersistent()
public long getResponseTimeOut()
protected TransactionCommitStrategy getCommitStrategy()
Apache Camel