T
- - The return type of the invocation of the command.public interface Operation<T extends Serializable> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
beforeInvoke(int token)
This method will be called on the client-side to prepare an operation for invocation on the
server-side.
|
T |
getResult()
This method will only yield a valid result after a call to invoke.
|
T |
invoke()
The method that will be called on the server side.
|
void |
setResult(Object result)
setResult will be called on the client side to assign the result.
|
T invoke() throws Exception
Exception
- exception when invoking this operationvoid setResult(Object result)
result
- The result of invoke obtained by the rmi-callT getResult()
void beforeInvoke(int token)
BaseOperation
.
The token can be retrieved by BaseOperation.getClientToken()
.token
- session tokenCopyright © 2016 SAPERION AG. All rights reserved.