public class PooledProducer extends PooledObject<javax.jms.MessageProducer> implements javax.jms.MessageProducer
MessageProducer
objects.MessageProducerPool
,
MessageProducerPoolFactory
,
SessionPool
Constructor and Description |
---|
PooledProducer(AbstractPool<PooledObject<javax.jms.MessageProducer>> pool,
javax.jms.MessageProducer object) |
Modifier and Type | Method and Description |
---|---|
long |
getDeliveryDelay() |
int |
getDeliveryMode() |
javax.jms.Destination |
getDestination() |
boolean |
getDisableMessageID() |
boolean |
getDisableMessageTimestamp() |
int |
getPriority() |
long |
getTimeToLive() |
static PooledProducer |
of(PooledObject<javax.jms.MessageProducer> object) |
void |
send(javax.jms.Destination destination,
javax.jms.Message message) |
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
javax.jms.CompletionListener completionListener) |
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive) |
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive,
javax.jms.CompletionListener completionListener) |
void |
send(javax.jms.Message message) |
void |
send(javax.jms.Message message,
javax.jms.CompletionListener completionListener) |
void |
send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive) |
void |
send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive,
javax.jms.CompletionListener completionListener) |
void |
setDeliveryDelay(long deliveryDelay) |
void |
setDeliveryMode(int deliveryMode) |
void |
setDisableMessageID(boolean value) |
void |
setDisableMessageTimestamp(boolean value) |
void |
setPriority(int defaultPriority) |
void |
setTimeToLive(long timeToLive) |
java.lang.String |
toString() |
close, get
public PooledProducer(AbstractPool<PooledObject<javax.jms.MessageProducer>> pool, javax.jms.MessageProducer object)
public static PooledProducer of(PooledObject<javax.jms.MessageProducer> object)
public void setDisableMessageID(boolean value) throws javax.jms.JMSException
setDisableMessageID
in interface javax.jms.MessageProducer
javax.jms.JMSException
public boolean getDisableMessageID() throws javax.jms.JMSException
getDisableMessageID
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void setDisableMessageTimestamp(boolean value) throws javax.jms.JMSException
setDisableMessageTimestamp
in interface javax.jms.MessageProducer
javax.jms.JMSException
public boolean getDisableMessageTimestamp() throws javax.jms.JMSException
getDisableMessageTimestamp
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void setDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setDeliveryMode
in interface javax.jms.MessageProducer
javax.jms.JMSException
public int getDeliveryMode() throws javax.jms.JMSException
getDeliveryMode
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void setPriority(int defaultPriority) throws javax.jms.JMSException
setPriority
in interface javax.jms.MessageProducer
javax.jms.JMSException
public int getPriority() throws javax.jms.JMSException
getPriority
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void setTimeToLive(long timeToLive) throws javax.jms.JMSException
setTimeToLive
in interface javax.jms.MessageProducer
javax.jms.JMSException
public long getTimeToLive() throws javax.jms.JMSException
getTimeToLive
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void setDeliveryDelay(long deliveryDelay) throws javax.jms.JMSException
setDeliveryDelay
in interface javax.jms.MessageProducer
javax.jms.JMSException
public long getDeliveryDelay() throws javax.jms.JMSException
getDeliveryDelay
in interface javax.jms.MessageProducer
javax.jms.JMSException
public javax.jms.Destination getDestination() throws javax.jms.JMSException
getDestination
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Message message) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Destination destination, javax.jms.Message message) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Message message, javax.jms.CompletionListener completionListener) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Message message, int deliveryMode, int priority, long timeToLive, javax.jms.CompletionListener completionListener) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Destination destination, javax.jms.Message message, javax.jms.CompletionListener completionListener) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public void send(javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long timeToLive, javax.jms.CompletionListener completionListener) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
javax.jms.JMSException
public java.lang.String toString()
toString
in class java.lang.Object