|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A WLMessageProducer provides methods not supported by javax.jms.MessageProducer.
WLMessageProducer provide methods for the following:
MessageProducer
Method Summary | |
void |
forward(Destination destination,
Message message)
Forwards a message to a destination for an unidentified message producer. |
void |
forward(Destination destination,
Message message,
int deliveryMode,
int priority,
long timeToLive)
Forwards a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live. |
void |
forward(Message message)
Forwards a message using the MessageProducer's default delivery mode, priority, and time to live. |
void |
forward(Message message,
int deliveryMode,
int priority,
long timeToLive)
Forwards a message to the destination, specifying delivery mode, priority, and time to live. |
int |
getCompressionThreshold()
|
int |
getRedeliveryLimit()
Get the redelivery limit for the producer. |
long |
getSendTimeout()
Get the send timeout the producer. |
long |
getTimeToDeliver()
Get the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination. |
String |
getUnitOfOrder()
Get the unit of order name associated with the producer. |
void |
setCompressionThreshold(int limit)
|
void |
setRedeliveryLimit(int redeliveryLimit)
Set the redelivery limit for the producer. |
void |
setSendTimeout(long sendTimeout)
Set the send timeout for the producer. |
void |
setTimeToDeliver(long timeToDeliver)
Set the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination. |
void |
setUnitOfOrder()
Set the Unit of Order for this producer with a system-generated name. |
void |
setUnitOfOrder(String name)
Set the Unit of Order name for this producer. |
Methods inherited from interface javax.jms.MessageProducer |
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
Method Detail |
public void forward(Destination destination, Message message) throws JMSException
destination
- - the destination to forward this message tomessage
- - the message to forward
JMSException
- - if the JMS provider fails to forward the message
due to some internal error or the message is not forwardable.
MessageFormatException
- - if an invalid message is specified.
InvalidDestinationException
- - if a client uses this method with a
MessageProducer with an invalid destination.
UnsupportedOperationException
- - if a client uses this method with a
MessageProducer that did not specify a destination at creation time.public void forward(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
destination
- - the destination to forward this message tomessage
- - the message to forwarddeliveryMode
- - the delivery mode to usepriority
- - the priority for this messagetimeToLive
- -the message's lifetime (in milliseconds)
JMSException
- - if the JMS provider fails to forward the message
due to some internal error or the message is not forwardable.
MessageFormatException
- - if an invalid message is specified.
InvalidDestinationException
- - if a client uses this method with a
MessageProducer with an invalid destination.
UnsupportedOperationException
- - if a client uses this method with a
MessageProducer that did not specify a destination at creation time.public void forward(Message message) throws JMSException
message
- - the message to forward
JMSException
- - if the JMS provider fails to send the message
due to some internal error or the message is not forwardable.
MessageFormatException
- - if an invalid message is specified.
InvalidDestinationException
- - if a client uses this method with a
MessageProducer with an invalid destination.
UnsupportedOperationException
- - if a client uses this method with a
MessageProducer that did not specify a destination at creation time.public void forward(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
message
- - the message to forwarddeliveryMode
- - the delivery mode to usepriority
- - the priority for this messagetimeToLive
- - the message's lifetime (in milliseconds)
JMSException
- - if the JMS provider fails to forward the message
due to some internal error or the message is not forwardable.
MessageFormatException
- - if an invalid message is specified.
InvalidDestinationException
- - if a client uses this method with a
MessageProducer with an invalid destination.
UnsupportedOperationException
- - if a client uses this method with a
MessageProducer that did not specify a destination at creation time.public int getCompressionThreshold() throws JMSException
JMSException
public int getRedeliveryLimit() throws JMSException
JMSException
- if a JMS error occurs.weblogic.jms.extensions.WLMessage.getJMSRedeliveryLimit()
,
weblogic.jms.extensions.WLMessage.setJMSRedeliveryLimit(int)
public long getSendTimeout() throws JMSException
JMSException
- if a JMS error occurs.public long getTimeToDeliver() throws JMSException
JMSException
- if a JMS error occurs.setTimeToDeliver(long)
,
weblogic.jms.extensions.WLMessage.getJMSDeliveryTime()
public String getUnitOfOrder() throws JMSException
JMSException
- if a JMS error occurs.public void setCompressionThreshold(int limit) throws JMSException
JMSException
public void setRedeliveryLimit(int redeliveryLimit) throws JMSException
redeliveryLimit
- the number of times to redeliver the message
JMSException
- if a JMS error occurs.weblogic.jms.extensions.WLMessage.getJMSRedeliveryLimit()
,
weblogic.jms.extensions.WLMessage.setJMSRedeliveryLimit(int)
public void setSendTimeout(long sendTimeout) throws JMSException
JMSException
- if a JMS error occurs.public void setTimeToDeliver(long timeToDeliver) throws JMSException
timeToDeliver
- The time to deliver this message.
JMSException
- if a JMS error occurs.getTimeToDeliver()
,
weblogic.jms.extensions.WLMessage.getJMSDeliveryTime()
public void setUnitOfOrder() throws JMSException
JMSException
- if a JMS error occurs.
UnsupportedOperationException
- if the frontend is older
than 9.0 (diablo)public void setUnitOfOrder(String name) throws JMSException
JMSException
- if a JMS error occurs.
UnsupportedOperationException
- if the frontend is older
than 9.0 (diablo)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |