|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jms.connection.MessageProducerImpl
public class MessageProducerImpl
A basic message producer.
| Field Summary | |
|---|---|
protected AbstractDestination |
_queue
|
protected JmsSession |
_session
|
static long |
DEFAULT_TIME_TO_LIVE
|
| Constructor Summary | |
|---|---|
MessageProducerImpl(JmsSession session,
AbstractDestination queue)
|
|
| Method Summary | |
|---|---|
protected long |
calculateExpiration(long timeToLive)
Calculates the expires time. |
void |
close()
Closes the producer. |
int |
getDeliveryMode()
Returns the default delivery mode. |
Destination |
getDestination()
Returns the producer's destination. |
boolean |
getDisableMessageID()
Returns true if message ids are disabled by default. |
boolean |
getDisableMessageTimestamp()
Returns true if message timestamps are disabled by default. |
int |
getPriority()
Returns the default priority |
long |
getTimeToLive()
Returns the default time to live |
void |
send(Destination destination,
Message message)
Sends a message to the destination |
void |
send(Destination destination,
Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to the destination |
void |
send(Message message)
Sends a message to the destination |
void |
send(Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to the destination |
void |
setDeliveryMode(int deliveryMode)
Sets the default delivery mode. |
void |
setDisableMessageID(boolean disable)
Sets true if message ids should be disabled by default. |
void |
setDisableMessageTimestamp(boolean disable)
Sets true if message timestamps should be disabled by default. |
void |
setPriority(int priority)
Sets the default priority. |
void |
setTimeToLive(long timeToLive)
Sets the default time to live. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_TIME_TO_LIVE
protected JmsSession _session
protected AbstractDestination _queue
| Constructor Detail |
|---|
public MessageProducerImpl(JmsSession session,
AbstractDestination queue)
| Method Detail |
|---|
public Destination getDestination()
throws JMSException
getDestination in interface MessageProducerJMSException
public int getDeliveryMode()
throws JMSException
getDeliveryMode in interface MessageProducerJMSException
public void setDeliveryMode(int deliveryMode)
throws JMSException
setDeliveryMode in interface MessageProducerJMSException
public boolean getDisableMessageID()
throws JMSException
getDisableMessageID in interface MessageProducerJMSException
public void setDisableMessageID(boolean disable)
throws JMSException
setDisableMessageID in interface MessageProducerJMSException
public boolean getDisableMessageTimestamp()
throws JMSException
getDisableMessageTimestamp in interface MessageProducerJMSException
public void setDisableMessageTimestamp(boolean disable)
throws JMSException
setDisableMessageTimestamp in interface MessageProducerJMSException
public int getPriority()
throws JMSException
getPriority in interface MessageProducerJMSException
public void setPriority(int priority)
throws JMSException
setPriority in interface MessageProducerJMSException
public long getTimeToLive()
throws JMSException
getTimeToLive in interface MessageProducerJMSException
public void setTimeToLive(long timeToLive)
throws JMSException
setTimeToLive in interface MessageProducerJMSException
public void send(Message message)
throws JMSException
send in interface MessageProducermessage - the message to send
JMSException
public void send(Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
send in interface MessageProducermessage - the message to senddeliveryMode - the delivery modepriority - the prioritytimeToLive - how long the message should live
JMSException
public void send(Destination destination,
Message message)
throws JMSException
send in interface MessageProducerdestination - the destination the message should be send tomessage - the message to send
JMSException
public void send(Destination destination,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
send in interface MessageProducerdestination - the destination the message should be send tomessage - the message to senddeliveryMode - the delivery modepriority - the prioritytimeToLive - how long the message should live
JMSExceptionprotected long calculateExpiration(long timeToLive)
public void close()
throws JMSException
close in interface MessageProducerJMSExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||