Package org.javalite.async
Class Command
java.lang.Object
org.javalite.async.Command
Super class of all commands. Only the method
execute() is to be provided by subclasses to
do real application work.- Author:
- Igor Polevoy on 4/4/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute()Subclasses are to provide implementation of this method to get application-specific work done.static <T extends Command>
TfromBytes(byte[] bytes)voidsetJMSMessageID(String jmsMessageID)byte[]toBytes()Flattens(serializes, dehydrates, etc.) this instance to a binary representation.
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
execute
public abstract void execute()Subclasses are to provide implementation of this method to get application-specific work done. -
toBytes
Flattens(serializes, dehydrates, etc.) this instance to a binary representation.- Returns:
- a binary representation
- Throws:
IOException
-
fromBytes
- Throws:
IOException
-
getJMSMessageID
-
setJMSMessageID
-