public class JmsConsumer
extends java.lang.Object
| Constructor and Description |
|---|
JmsConsumer(JMSDestinationType type,
JMSConnectionPool connectionPool,
Deserializer deserializer) |
JmsConsumer(JMSDestinationType type,
JMSConnectionPool connectionPool,
Deserializer deserializer,
boolean sessionTransacted,
int sessionAcknowledgeMode) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Message |
receive(java.lang.String destination)
Receives a
Message from the broker. |
<T> T |
receive(java.lang.String destination,
java.lang.Class<T> clazz)
Receives a
Message from the broker and and converts it to
an instance of type <T>. |
java.lang.String |
toString() |
public JmsConsumer(JMSDestinationType type, JMSConnectionPool connectionPool, Deserializer deserializer)
public JmsConsumer(JMSDestinationType type, JMSConnectionPool connectionPool, Deserializer deserializer, boolean sessionTransacted, int sessionAcknowledgeMode)
public <T> T receive(@NonNull
java.lang.String destination,
java.lang.Class<T> clazz)
Message from the broker and and converts it to
an instance of type <T>.T - the class typedestination - the queue or topic nameclazz - the class<T>.public javax.jms.Message receive(@NonNull
java.lang.String destination)
Message from the broker.destination - the queue or topic namepublic java.lang.String toString()
toString in class java.lang.Object