|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WLJMSProducer
A WLJMSProducer provides methods not supported by javax.jms.JMSProducer.
WLJMSProducer provide methods for the following:
JMSProducer
Method Summary | |
---|---|
abstract WLJMSProducer |
forward(Destination destination, Message message) Forwards a message to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. |
abstract int |
getCompressionThreshold() The number of bytes for the serialized message body so any message that exceeds this limit will trigger message compression when the message is sent using this JMSProducer. |
abstract int |
getRedeliveryLimit() Get the redelivery limit for the producer. |
abstract long |
getSendTimeout() Get the send timeout for the producer. |
abstract String |
getUnitOfOrder() Get the Unit-of-Order name associated with the producer. |
abstract WLJMSProducer |
setCompressionThreshold(int limit) The number of bytes for the serialized message body so any message that exceeds this limit will trigger message compression when the message is sent using this JMSProducer. |
abstract WLJMSProducer |
setRedeliveryLimit(int redeliveryLimit) Set the redelivery limit for the producer. |
abstract WLJMSProducer |
setSendTimeout(long sendTimeout) Set the send timeout for the producer. |
abstract WLJMSProducer |
setUnitOfOrder() Set the Unit-of-Order for this producer with a system-generated name. |
abstract WLJMSProducer |
setUnitOfOrder(String name) Set the Unit-of-Order name for this producer. |
Method Detail |
---|
int getRedeliveryLimit()
JMSRuntimeException
- if a JMS error occurs.WLMessage.getJMSRedeliveryLimit()
, WLMessage.setJMSRedeliveryLimit(int)
WLJMSProducer setRedeliveryLimit(int redeliveryLimit)
redeliveryLimit
- the number of times to redeliver the messageJMSRuntimeException
- if a JMS error occurs.WLMessage.getJMSRedeliveryLimit()
, WLMessage.setJMSRedeliveryLimit(int)
long getSendTimeout()
JMSRuntimeException
- if a JMS error occurs.WLJMSProducer setSendTimeout(long sendTimeout)
sendTimeout
- the send timeout in millisecondsJMSRuntimeException
- if a JMS error occurs.String getUnitOfOrder()
JMSRuntimeException
- if a JMS error occurs.WLJMSProducer setUnitOfOrder(String name)
name
- the name or null if none is to be used.JMSRuntimeException
- if a JMS error occurs.UnsupportedOperationException
- if the frontend is older than 9.0 (diablo)WLJMSProducer setUnitOfOrder()
JMSException
- if a JMS error occurs.UnsupportedOperationException
- if the frontend is older than 9.0 (diablo)WLJMSProducer forward(Destination destination, Message message)
Forwarding a newly created message causes a JMSRuntimeException to be thrown. The forward() method can only be used on unmodified received messages.
Forwarding a message asynchronously is not supported
destination
- - the destination to forward this message tomessage
- - the message to forwardJMSRuntimeException
- - if the JMS provider fails to forward the message due to some internal error or the message is not forwardable.MessageFormatRuntimeException
- - if an invalid message is specified.InvalidDestinationRuntimeException
- - if an invalid destination is specified.UnsupportedOperationException
- - if this method is called on a JMSProducer object whose setAsync method has previously been used to specify that messages should be sent synchronously.WLJMSProducer setCompressionThreshold(int limit)
The number of bytes for the serialized message body so any message that exceeds this limit will trigger message compression when the message is sent using this JMSProducer.
The compression occurs on the JMS message producer's JVM if the JMS message producer's JVM is not colocated with the JMS provider's JVM and if the message body size exceeds the threshold limit.
The compression threshold value can be set to zero or higher. Setting it to zero will cause every message body to be compressed, except when messages are sent to a prior WebLogic Server release that doesn't support this feature.
limit
- - minimum of the serialized message body size to trigger the compression.JMSRuntimeException
- - if an error occursint getCompressionThreshold()
The number of bytes for the serialized message body so any message that exceeds this limit will trigger message compression when the message is sent using this JMSProducer.
The compression occurs on the JMS message producer's JVM if the JMS message producer's JVM is not colocated with the JMS provider's JVM and if the message body size exceeds the threshold limit.
The compression threshold value can be set to zero or higher. Setting it to zero will cause every message body to be compressed, except when messages are sent to a prior WebLogic Server release that doesn't support this feature.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |