| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.impl | |
| org.nustaq.kontraktor.remoting.base | |
| org.nustaq.kontraktor.remoting.tcp |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IPromise<T>
IPromise interface.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Promise<T>
implementation of the IPromise interface.
|
| Modifier and Type | Field and Description |
|---|---|
protected Callback |
Promise.resultReceiver |
| Modifier and Type | Method and Description |
|---|---|
void |
Actor.__addStopHandler(Callback<SELF> cb) |
void |
Promise.finallyDo(Callback resultCB)
same as then, but avoid creation of new promise
|
Spore<I,O> |
Spore.forEach(Callback<O> cb)
local.
|
<T> void |
Scheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
IPromise |
Promise.then(Callback resultCB)
see IPromise (inheriting Callback) interface
|
IPromise<T> |
IPromise.then(Callback<T> result)
called once any result of a future becomes available
Can be used in case a sender is not interested in the actual result
but when a remote method has finished processing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CallbackWrapper<T>
..
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
RemoteScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
<T> void |
SimpleScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
IPromise |
CallbackWrapper.then(Callback<T> result) |
| Constructor and Description |
|---|
CallbackWrapper(Actor targetQ,
Callback<T> realFuture) |
| Modifier and Type | Method and Description |
|---|---|
Callback |
RemoteRegistry.getPublishedCallback(int id) |
| Modifier and Type | Method and Description |
|---|---|
<T> IPromise<T> |
LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback)
disconnect callback will never be called (local actor connection)
|
<T> IPromise<T> |
ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback) |
int |
RemoteRegistry.registerPublishedCallback(Callback cb) |
| Modifier and Type | Field and Description |
|---|---|
protected Callback<ActorClientConnector> |
TCPClientConnector.disconnectCallback |
| Modifier and Type | Method and Description |
|---|---|
<T> IPromise<T> |
TCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback) |
| Constructor and Description |
|---|
TCPClientConnector(int port,
String host,
Callback<ActorClientConnector> disconnectCallback) |
Copyright © 2015. All rights reserved.