|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.ra.JBMMessageProducer
public class JBMMessageProducer
JBMMessageProducer.
Field Summary | |
---|---|
protected javax.jms.MessageProducer |
producer
The wrapped message producer |
protected JBMSession |
session
The session for this consumer |
Constructor Summary | |
---|---|
JBMMessageProducer(javax.jms.MessageProducer producer,
JBMSession session)
Create a new wrapper |
Method Summary | |
---|---|
void |
close()
Close |
int |
getDeliveryMode()
Get the delivery mode |
javax.jms.Destination |
getDestination()
Get the destination |
boolean |
getDisableMessageID()
Disable message id |
boolean |
getDisableMessageTimestamp()
Disable message timestamp |
int |
getPriority()
Get the priority |
long |
getTimeToLive()
Get the time to live |
void |
send(javax.jms.Destination destination,
javax.jms.Message message)
Send message |
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Send message |
void |
send(javax.jms.Message message)
Send message |
void |
send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Send message |
void |
setDeliveryMode(int deliveryMode)
Set the delivery mode |
void |
setDisableMessageID(boolean value)
Set disable message id |
void |
setDisableMessageTimestamp(boolean value)
Set disable message timestamp |
void |
setPriority(int defaultPriority)
Set the priority |
void |
setTimeToLive(long timeToLive)
Set the ttl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.jms.MessageProducer producer
protected JBMSession session
Constructor Detail |
---|
public JBMMessageProducer(javax.jms.MessageProducer producer, JBMSession session)
producer
- the producersession
- the sessionMethod Detail |
---|
public void close() throws javax.jms.JMSException
close
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic 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
destination
- The destinationmessage
- The messagedeliveryMode
- The delivery modepriority
- The prioritytimeToLive
- The time to live
javax.jms.JMSException
- Thrown if an error occurspublic void send(javax.jms.Destination destination, javax.jms.Message message) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
destination
- The destinationmessage
- The message
javax.jms.JMSException
- Thrown if an error occurspublic void send(javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
message
- The messagedeliveryMode
- The delivery modepriority
- The prioritytimeToLive
- The time to live
javax.jms.JMSException
- Thrown if an error occurspublic void send(javax.jms.Message message) throws javax.jms.JMSException
send
in interface javax.jms.MessageProducer
message
- The message
javax.jms.JMSException
- Thrown if an error occurspublic int getDeliveryMode() throws javax.jms.JMSException
getDeliveryMode
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic javax.jms.Destination getDestination() throws javax.jms.JMSException
getDestination
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic boolean getDisableMessageID() throws javax.jms.JMSException
getDisableMessageID
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic boolean getDisableMessageTimestamp() throws javax.jms.JMSException
getDisableMessageTimestamp
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic int getPriority() throws javax.jms.JMSException
getPriority
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic long getTimeToLive() throws javax.jms.JMSException
getTimeToLive
in interface javax.jms.MessageProducer
javax.jms.JMSException
- Thrown if an error occurspublic void setDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setDeliveryMode
in interface javax.jms.MessageProducer
deliveryMode
- The mode
javax.jms.JMSException
- Thrown if an error occurspublic void setDisableMessageID(boolean value) throws javax.jms.JMSException
setDisableMessageID
in interface javax.jms.MessageProducer
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setDisableMessageTimestamp(boolean value) throws javax.jms.JMSException
setDisableMessageTimestamp
in interface javax.jms.MessageProducer
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setPriority(int defaultPriority) throws javax.jms.JMSException
setPriority
in interface javax.jms.MessageProducer
defaultPriority
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setTimeToLive(long timeToLive) throws javax.jms.JMSException
setTimeToLive
in interface javax.jms.MessageProducer
timeToLive
- The value
javax.jms.JMSException
- Thrown if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |