Package org.javalite.async
Class CommandListener
java.lang.Object
org.javalite.async.CommandListener
- All Implemented Interfaces:
javax.jms.MessageListener
- Direct Known Subclasses:
DBCommandListener
- Author:
- Igor Polevoy on 4/5/15.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Command>
voidonCommand(T command)
void
onMessage(javax.jms.Message message)
protected Command
parseCommand(javax.jms.Message message)
-
Constructor Details
-
CommandListener
public CommandListener()
-
-
Method Details
-
onMessage
public void onMessage(javax.jms.Message message)- Specified by:
onMessage
in interfacejavax.jms.MessageListener
-
onCommand
-
parseCommand
protected Command parseCommand(javax.jms.Message message) throws IOException, javax.jms.JMSException- Throws:
IOException
javax.jms.JMSException
-