|
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 WmMessageProducer
Interface defining webMethods extensions to javax.jms.MessageProducer and its subclasses.
Method Summary | |
---|---|
int |
getCompressionLevel()
Get the compression level for this producer. |
int |
getCompressionThreshold()
Get the compression threshold for this producer. |
java.io.OutputStream |
getOutputStream()
Returns an OutputStream that writes data over a MessageConsumer. |
java.io.OutputStream |
getOutputStream(int packetSize)
Returns an OutputStream that writes data over a MessageConsumer. |
void |
send(javax.jms.Destination destination,
javax.jms.Message[] messages)
Sends multiple messages to a destination for an unidentified message producer. |
void |
send(javax.jms.Destination destination,
javax.jms.Message[] messages,
int deliveryMode,
int priority,
long timeToLive)
Sends multiple messages to a destination for an unidentified message producer, specifying delivery mode, priority and time to live. |
void |
send(javax.jms.Message[] messages)
Sends multiple messages using the MessageProducer 's default delivery mode, priority, and time to live. |
void |
send(javax.jms.Message[] messages,
int deliveryMode,
int priority,
long timeToLive)
Sends multiple messages to the destination, specifying delivery mode, priority, and time to live. |
void |
setCompressionLevel(int level)
Set the compression level for this producer. |
void |
setCompressionThreshold(int compressionThreshold)
Set the compression threshold 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 |
---|
void send(javax.jms.Message[] messages) throws javax.jms.JMSException
MessageProducer
's default delivery mode, priority, and time to live.
messages
- the messages to send
javax.jms.JMSException
- if the JMS provider fails to send the message due to some internal error.
javax.jms.MessageFormatException
- if an invalid message is specified.
javax.jms.InvalidDestinationException
- if a client uses this method with a MessageProducer
with an invalid destination.
java.lang.UnsupportedOperationException
- if a client uses this method with a MessageProducer
that did not specify a destination at creation time.Session.createProducer(javax.jms.Destination)
void send(javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
messages
- the messages to senddeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds)
javax.jms.JMSException
- if the JMS provider fails to send the message due to some internal error.
javax.jms.MessageFormatException
- if an invalid message is specified.
javax.jms.InvalidDestinationException
- if a client uses this method with a MessageProducer
with an invalid destination.
java.lang.UnsupportedOperationException
- if a client uses this method with a MessageProducer
that did not specify a destination at creation time.Session.createProducer(javax.jms.Destination)
void send(javax.jms.Destination destination, javax.jms.Message[] messages) throws javax.jms.JMSException
MessageProducer
's default delivery mode, priority,
and time to live.
Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.
destination
- the destination to send the messages tomessages
- the messages to send
javax.jms.JMSException
- if the JMS provider fails to send the message due to some internal error.
javax.jms.MessageFormatException
- if an invalid message is specified.
javax.jms.InvalidDestinationException
- if a client uses this method with an invalid destination.
java.lang.UnsupportedOperationException
- if a client uses this method with a MessageProducer
that specified a destination at creation time.Session.createProducer(javax.jms.Destination)
void send(javax.jms.Destination destination, javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.
destination
- the destination to send the messages tomessages
- the messages to senddeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds)
javax.jms.JMSException
- if the JMS provider fails to send the message due to some internal error.
javax.jms.MessageFormatException
- if an invalid message is specified.
javax.jms.InvalidDestinationException
- if a client uses this method with an invalid destination.Session.createProducer(javax.jms.Destination)
void setCompressionThreshold(int compressionThreshold) throws javax.jms.JMSException
A value of -1 disables all message compression.
compressionThreshold
- The compression threshold.
javax.jms.JMSException
- for any internal errors.int getCompressionThreshold() 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.java.io.OutputStream getOutputStream(int packetSize) throws javax.jms.JMSException
packetSize
- the maximum number of bytes to include in each underlying BytesMessage that represents the stream.
javax.jms.InvalidDestinationException
- if a client uses this method with a MessageProducer
with an invalid destination.
java.lang.UnsupportedOperationException
- if a client uses this method with a MessageProducer
that did not specify a destination at creation time.
javax.jms.JMSException
- if the MessageProducer's OutputStream could not be returned.java.io.OutputStream getOutputStream() throws javax.jms.JMSException
javax.jms.InvalidDestinationException
- if a client uses this method with a MessageProducer
with an invalid destination.
java.lang.UnsupportedOperationException
- if a client uses this method with a MessageProducer
that did not specify a destination at creation time.
javax.jms.JMSException
- if the MessageProducer's OutputStream could not be returned.
|
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 |