|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WmMessage
Interface defining webMethods extensions to javax.jms.Message and its subclasses.
Field Summary | |
---|---|
static java.lang.String |
WM_JMS_CLUSTER_NODES
|
static java.lang.String |
WM_JMS_CLUSTER_NODES_DELIMITER
|
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
---|---|
void |
explicitAcknowledge()
Explicitly acknowledges this and only this consumed message. |
boolean |
getCompression()
Get whether compression is enabled or disabled for this message. |
int |
getCompressionLevel()
Get the compression level for this message. |
int |
getCompressionRatio()
Get the compression ratio of a delivered message that has been compressed. |
int |
getSize()
Get the message size in bytes. |
void |
negativeAcknowledge()
Negatively acknowledges this consumed message causing it to be redelivered. |
void |
setAccessLabel(short[] label)
Set access label to message envelope |
void |
setCompression(boolean compress)
Enable or disable compression for this message. |
void |
setCompressionLevel(int level)
Set the compression level for this message. |
Methods inherited from interface javax.jms.Message |
---|
acknowledge, clearBody, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty |
Field Detail |
---|
static final java.lang.String WM_JMS_CLUSTER_NODES
static final java.lang.String WM_JMS_CLUSTER_NODES_DELIMITER
Method Detail |
---|
void explicitAcknowledge() throws javax.jms.JMSException
Calls to explicitAcknowledge
are ignored for both transacted sessions and sessions specified to use implicit acknowledgement modes.
Messages that have been received but not acknowledged may be redelivered.
javax.jms.JMSException
- if the JMS provider fails to acknowledge the message due to some internal error.
javax.jms.IllegalStateException
- if this method is called on a closed session.Session.CLIENT_ACKNOWLEDGE
void negativeAcknowledge() throws javax.jms.JMSException
Calls to negativeAcknowledge
are ignored for both transacted sessions and sessions specified to use implicit acknowledgement modes.
javax.jms.JMSException
- if the JMS provider fails to negative acknowledge the message due to some internal error.
javax.jms.IllegalStateException
- if this method is called on a closed session.Session.CLIENT_ACKNOWLEDGE
int getSize() throws javax.jms.JMSException
javax.jms.JMSException
- for any internal errors.void setCompression(boolean compress) throws javax.jms.JMSException
compress
- true
to enable compression for this message.
javax.jms.JMSException
- for any internal errors.boolean getCompression() throws javax.jms.JMSException
javax.jms.JMSException
- for any internal errors.void setCompressionLevel(int level) throws javax.jms.JMSException
level
- The compression level (0-9) as defined by java.util.zip.Deflater
.
javax.jms.JMSException
- for any internal errors.int getCompressionLevel() throws javax.jms.JMSException
java.util.zip.Deflater
.
javax.jms.JMSException
- for any internal errors.int getCompressionRatio() throws javax.jms.JMSException
ratio = ((uncompressed_size - compressed_size) / uncompressed_size) * 100
javax.jms.JMSException
- for any internal errors.void setAccessLabel(short[] label) throws javax.jms.JMSException
label
-
javax.jms.JMSException
|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |