|
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 WmMessageConsumer
Interface defining webMethods extensions to javax.jms.MessageConsumer and its subclasses.
Method Summary | |
---|---|
long |
available()
Gets the number of messages on the Broker available to the consumer. |
void |
clear()
Clears all available messages to the consumer from the Broker. |
void |
close()
|
javax.jms.Destination |
getDestination()
Get the Destination associated with this consumer. |
java.io.InputStream |
getInputStream()
Returns an InputStream that reads data from a MessageConsumer. |
int |
getMaxReceive()
Get the maximum receive value for this message consumer. |
void |
setMaxReceive(int maxReceive)
Set the maximum receive value for this message consumer. |
Methods inherited from interface javax.jms.MessageConsumer |
---|
getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener |
Method Detail |
---|
void setMaxReceive(int maxReceive) throws javax.jms.JMSException
maxReceive
- the maximum number of messages to be accumulated by this message consumer
javax.jms.JMSException
- if the JMS provider fails to set the maximum receive value.getMaxReceive()
int getMaxReceive() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the maximum receive value.setMaxReceive(int)
javax.jms.Destination getDestination() throws javax.jms.JMSException
Destination
associated with this consumer.
Destination
javax.jms.JMSException
- if the JMS provider fails to get the destination for this consumer due to some internal error.long available() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the number of available messages.void clear() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to clear the consumer's messages.java.io.InputStream getInputStream() throws javax.jms.JMSException
javax.jms.JMSException
- if the MessageConsumer's InputStream could not be returned.void close() throws javax.jms.JMSException
close
in interface javax.jms.MessageConsumer
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 |