public class OrderedInvoker extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addPendingMethod(int sequence,
Method method,
Object instance,
Object[] params,
VersionedIdentifier disposeId) |
<V> void |
addPendingMethod(int sequence,
Method method,
Object instance,
Object[] params,
VersionedIdentifier disposeId,
RemoteCompletion<V> completion)
Call if method returns a Future or Completion.
|
void |
close() |
void |
finished(int sequence) |
boolean |
isNext(int sequence)
Is called by asynchronous methods to prevent too many threads from
accumulating.
|
boolean |
waitForNext(int sequence)
Is called by methods which cannot yield control of the current
thread.
|
public boolean waitForNext(int sequence)
throws InterruptedException
InterruptedExceptionpublic boolean isNext(int sequence)
public void finished(int sequence)
public void addPendingMethod(int sequence,
Method method,
Object instance,
Object[] params,
VersionedIdentifier disposeId)
public <V> void addPendingMethod(int sequence,
Method method,
Object instance,
Object[] params,
VersionedIdentifier disposeId,
RemoteCompletion<V> completion)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2006–2015 Cojen. All rights reserved.