Package org.javalite.async
Class CommandListener
- java.lang.Object
-
- org.javalite.async.CommandListener
-
- All Implemented Interfaces:
javax.jms.MessageListener
- Direct Known Subclasses:
DBCommandListener
public class CommandListener extends Object implements javax.jms.MessageListener
- Author:
- Igor Polevoy on 4/5/15.
-
-
Constructor Summary
Constructors Constructor Description CommandListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Command>
voidonCommand(T command)voidonMessage(javax.jms.Message message)protected CommandparseCommand(javax.jms.Message message)
-
-
-
Method Detail
-
onMessage
public void onMessage(javax.jms.Message message)
- Specified by:
onMessagein interfacejavax.jms.MessageListener
-
onCommand
public <T extends Command> void onCommand(T command)
-
parseCommand
protected Command parseCommand(javax.jms.Message message) throws IOException, javax.jms.JMSException
- Throws:
IOExceptionjavax.jms.JMSException
-
-