Package org.apache.activemq.jms.pool
Class PooledProducer
- java.lang.Object
-
- org.apache.activemq.jms.pool.PooledProducer
-
- All Implemented Interfaces:
MessageProducer
- Direct Known Subclasses:
PooledQueueSender
,PooledTopicPublisher
public class PooledProducer extends Object implements MessageProducer
A pooledMessageProducer
-
-
Constructor Summary
Constructors Constructor Description PooledProducer(MessageProducer messageProducer, Destination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
PooledProducer
public PooledProducer(MessageProducer messageProducer, Destination destination) throws JMSException
- Throws:
JMSException
-
-
Method Detail
-
close
public void close() throws JMSException
- Specified by:
close
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Destination destination, Message message) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Message message) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
getDestination
public Destination getDestination()
- Specified by:
getDestination
in interfaceMessageProducer
-
getDeliveryMode
public int getDeliveryMode()
- Specified by:
getDeliveryMode
in interfaceMessageProducer
-
setDeliveryMode
public void setDeliveryMode(int deliveryMode)
- Specified by:
setDeliveryMode
in interfaceMessageProducer
-
getDisableMessageID
public boolean getDisableMessageID()
- Specified by:
getDisableMessageID
in interfaceMessageProducer
-
setDisableMessageID
public void setDisableMessageID(boolean disableMessageID)
- Specified by:
setDisableMessageID
in interfaceMessageProducer
-
getDisableMessageTimestamp
public boolean getDisableMessageTimestamp()
- Specified by:
getDisableMessageTimestamp
in interfaceMessageProducer
-
setDisableMessageTimestamp
public void setDisableMessageTimestamp(boolean disableMessageTimestamp)
- Specified by:
setDisableMessageTimestamp
in interfaceMessageProducer
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceMessageProducer
-
setPriority
public void setPriority(int priority)
- Specified by:
setPriority
in interfaceMessageProducer
-
getTimeToLive
public long getTimeToLive()
- Specified by:
getTimeToLive
in interfaceMessageProducer
-
setTimeToLive
public void setTimeToLive(long timeToLive)
- Specified by:
setTimeToLive
in interfaceMessageProducer
-
getMessageProducer
protected MessageProducer getMessageProducer()
-
isAnonymous
protected boolean isAnonymous()
-
-