public class PooledProducer extends Object implements MessageProducer
MessageProducer| Constructor and Description |
|---|
PooledProducer(MessageProducer messageProducer,
Destination destination) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getDeliveryMode() |
Destination |
getDestination() |
boolean |
getDisableMessageID() |
boolean |
getDisableMessageTimestamp() |
protected MessageProducer |
getMessageProducer() |
int |
getPriority() |
long |
getTimeToLive() |
protected boolean |
isAnonymous() |
void |
send(Destination destination,
Message message) |
void |
send(Destination destination,
Message message,
int deliveryMode,
int priority,
long timeToLive) |
void |
send(Message message) |
void |
send(Message message,
int deliveryMode,
int priority,
long timeToLive) |
void |
setDeliveryMode(int deliveryMode) |
void |
setDisableMessageID(boolean disableMessageID) |
void |
setDisableMessageTimestamp(boolean disableMessageTimestamp) |
void |
setPriority(int priority) |
void |
setTimeToLive(long timeToLive) |
String |
toString() |
public PooledProducer(MessageProducer messageProducer, Destination destination) throws JMSException
JMSExceptionpublic void close() throws JMSException
close in interface MessageProducerJMSExceptionpublic void send(Destination destination, Message message) throws JMSException
send in interface MessageProducerJMSExceptionpublic void send(Message message) throws JMSException
send in interface MessageProducerJMSExceptionpublic void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
send in interface MessageProducerJMSExceptionpublic void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
send in interface MessageProducerJMSExceptionpublic Destination getDestination()
getDestination in interface MessageProducerpublic int getDeliveryMode()
getDeliveryMode in interface MessageProducerpublic void setDeliveryMode(int deliveryMode)
setDeliveryMode in interface MessageProducerpublic boolean getDisableMessageID()
getDisableMessageID in interface MessageProducerpublic void setDisableMessageID(boolean disableMessageID)
setDisableMessageID in interface MessageProducerpublic boolean getDisableMessageTimestamp()
getDisableMessageTimestamp in interface MessageProducerpublic void setDisableMessageTimestamp(boolean disableMessageTimestamp)
setDisableMessageTimestamp in interface MessageProducerpublic int getPriority()
getPriority in interface MessageProducerpublic void setPriority(int priority)
setPriority in interface MessageProducerpublic long getTimeToLive()
getTimeToLive in interface MessageProducerpublic void setTimeToLive(long timeToLive)
setTimeToLive in interface MessageProducerprotected MessageProducer getMessageProducer()
protected boolean isAnonymous()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.