Uses of Class
org.javalite.async.Command
-
Uses of Command in org.javalite.async
Modifier and TypeMethodDescriptionstatic <T extends Command>
TCommand.fromBytes(byte[] bytes)
static <T extends Command>
TMethod used by framework to de-serialize a command from XML.<T extends Command>
voidCommandListener.onCommand(T command)
<T extends Command>
voidDBCommandListener.onCommand(T command)
<T extends Command>
TAsync.receiveCommand(String queueName, int timeout, Class<T> type)
Receives a command from a queue synchronously.<T extends Command>
TAsync.receiveCommand(String queueName, Class<T> type)
Receives a command from a queue synchronously.Modifier and TypeMethodDescriptionprotected Command
CommandListener.parseCommand(javax.jms.Message message)
Async.receiveCommand(String queueName)
Receives a command from a queue synchronously.Async.receiveCommand(String queueName, long timeout)
Receives a command from a queue synchronously.Modifier and TypeMethodDescriptionAsync.getTopCommands(int count, String queueName)
Returns top commands in queue.Modifier and TypeMethodDescriptionprotected void
DBCommandListener.onException(Command command, Exception exception)
Override in subclasses to handle exceptions.void
Sends a command into a queue for processingvoid
Sends a command into a queue for processingvoid
Sends a command into a queue for processingvoid
Async.send(String queueName, Command command, int deliveryMode, int priority, long timeToLive, long deliveryTime)
Sends a command into a queue for processingvoid
Sends a command into a queue for processingvoid
Sends a command into a queue for processing