T - the return value of the Protocol response messageinterface Protocol<T>
| Modifier and Type | Method and Description |
|---|---|
T |
execute(InternalConnection connection)
Execute the protocol.
|
void |
executeAsync(InternalConnection connection,
SingleResultCallback<T> callback)
Execute the protocol asynchronously.
|
void |
setCommandListener(CommandListener commandListener) |
T execute(InternalConnection connection)
connection - the connection to execute the protocol onvoid executeAsync(InternalConnection connection, SingleResultCallback<T> callback)
connection - the connection to execute the protocol oncallback - the callback that is passed the result of the executionvoid setCommandListener(CommandListener commandListener)