org.apache.activemq.pool
Class PooledProducer

java.lang.Object
  extended by org.apache.activemq.pool.PooledProducer
All Implemented Interfaces:
MessageProducer
Direct Known Subclasses:
PooledQueueSender, PooledTopicPublisher

public class PooledProducer
extends Object
implements MessageProducer

A pooled MessageProducer


Constructor Summary
PooledProducer(ActiveMQMessageProducer messageProducer, Destination destination)
           
 
Method Summary
 void close()
           
 int getDeliveryMode()
           
 Destination getDestination()
           
 boolean getDisableMessageID()
           
 boolean getDisableMessageTimestamp()
           
protected  ActiveMQMessageProducer getMessageProducer()
           
 int getPriority()
           
 long getTimeToLive()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PooledProducer

public PooledProducer(ActiveMQMessageProducer messageProducer,
                      Destination destination)
               throws JMSException
Throws:
JMSException
Method Detail

close

public void close()
           throws JMSException
Specified by:
close in interface MessageProducer
Throws:
JMSException

send

public void send(Destination destination,
                 Message message)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

send

public void send(Message message)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

send

public void send(Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

send

public void send(Destination destination,
                 Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

getDestination

public Destination getDestination()
Specified by:
getDestination in interface MessageProducer

getDeliveryMode

public int getDeliveryMode()
Specified by:
getDeliveryMode in interface MessageProducer

setDeliveryMode

public void setDeliveryMode(int deliveryMode)
Specified by:
setDeliveryMode in interface MessageProducer

getDisableMessageID

public boolean getDisableMessageID()
Specified by:
getDisableMessageID in interface MessageProducer

setDisableMessageID

public void setDisableMessageID(boolean disableMessageID)
Specified by:
setDisableMessageID in interface MessageProducer

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
Specified by:
getDisableMessageTimestamp in interface MessageProducer

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean disableMessageTimestamp)
Specified by:
setDisableMessageTimestamp in interface MessageProducer

getPriority

public int getPriority()
Specified by:
getPriority in interface MessageProducer

setPriority

public void setPriority(int priority)
Specified by:
setPriority in interface MessageProducer

getTimeToLive

public long getTimeToLive()
Specified by:
getTimeToLive in interface MessageProducer

setTimeToLive

public void setTimeToLive(long timeToLive)
Specified by:
setTimeToLive in interface MessageProducer

getMessageProducer

protected ActiveMQMessageProducer getMessageProducer()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.