public interface Command<T extends CommandResponse> extends Serializable
Command interface represents a command the client can execute. It should contain the
necessary data for the command handler to execute this command. The only required property for
any command is type.| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Getter for string-based command type identifier.
|
String getType()
Warning! Command type identifier should not be settable outside of this class. It should
be read-only, i.e., immutable. It's recommended that its internal declaration be marked
final.
Copyright © 2018. All rights reserved.