Class AsyncClient
- java.lang.Object
-
- ejava.examples.jms20.jmsmechanics.AsyncClient
-
- All Implemented Interfaces:
MyClient
,MessageListener
public class AsyncClient extends Object implements MessageListener, MyClient
This client provides a JMSConsumer callback to process incoming messages. It runs within a thread of the JMS client provider.
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private static org.slf4j.Logger
logger
private LinkedList<Message>
messages
-
Constructor Summary
Constructors Constructor Description AsyncClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Message
getMessage()
void
onMessage(Message message)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
count
private int count
-
messages
private LinkedList<Message> messages
-
-
Method Detail
-
onMessage
public void onMessage(Message message)
- Specified by:
onMessage
in interfaceMessageListener
-
getMessage
public Message getMessage()
- Specified by:
getMessage
in interfaceMyClient
-
-