public static class RemoteService.RemoteServiceInvocation extends java.lang.Object implements RemoteService.RemoteServiceInvocationChain
| Constructor and Description |
|---|
RemoteService.RemoteServiceInvocation(RemoteService remoteService,
java.lang.String method,
java.lang.Object... parameters) |
| Modifier and Type | Method and Description |
|---|---|
RemoteService.RemoteServiceInvocation |
addListener(ResponseListener listener)
Register a listener for the current invocation
|
RemoteService.RemoteServiceInvocation |
addListeners(ResponseListener... listeners)
Registers many listeners for the current invocation
|
RemoteService.RemoteServiceInvocationChain |
appendInvocation(java.lang.String method,
java.lang.Object... parameters)
Append a new invocation to the current chain of invocations
|
ResponseMessageFuture |
invoke()
Execute the chain of invocations
|
RemoteService.RemoteServiceInvocation |
setTimeToLive(long timeToLiveMillis)
Set the time to live for the current invocation
|
RemoteService.RemoteServiceInvocation |
setTimeToLive(long timeToLive,
java.util.concurrent.TimeUnit unit)
Set the time to live in any unit for the current invocation
|
public RemoteService.RemoteServiceInvocation(RemoteService remoteService, java.lang.String method, java.lang.Object... parameters)
public RemoteService.RemoteServiceInvocation addListener(ResponseListener listener)
listener - listenerpublic RemoteService.RemoteServiceInvocation addListeners(ResponseListener... listeners)
listeners - array of listenerpublic RemoteService.RemoteServiceInvocation setTimeToLive(long timeToLiveMillis)
timeToLiveMillis - time to live in millisecondspublic RemoteService.RemoteServiceInvocation setTimeToLive(long timeToLive, java.util.concurrent.TimeUnit unit)
timeToLive - time to live valueunit - time to live unitpublic RemoteService.RemoteServiceInvocationChain appendInvocation(java.lang.String method, java.lang.Object... parameters)
RemoteService.RemoteServiceInvocationChainappendInvocation in interface RemoteService.RemoteServiceInvocationChainmethod - remote method nameparameters - arguments to sendpublic ResponseMessageFuture invoke()
RemoteService.RemoteServiceInvocationChaininvoke in interface RemoteService.RemoteServiceInvocationChain