| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.impl | |
| org.nustaq.kontraktor.remoting.base | |
| org.nustaq.kontraktor.remoting.encoding | |
| 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 |
Spore.cb |
protected Callback |
Promise.resultReceiver |
| Modifier and Type | Method and Description |
|---|---|
default Callback |
Callback.pipe(T result)
invalid for Promises!.
|
| 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
|
<T> void |
Scheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
Spore<I,O> |
Spore.setForEach(Callback<O> cb)
use local (sender side).
|
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>
If a promise or callback is wrapped by this, it will be treated correctly when remoted.
|
| Modifier and Type | Method and Description |
|---|---|
Callback<T> |
CallbackWrapper.getRealCallback() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
SimpleScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
<T> void |
RemoteScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
IPromise |
CallbackWrapper.then(Callback<T> result)
Warning: this will not be called on error or timeout
|
| Constructor and Description |
|---|
CallbackWrapper(Actor targetQ,
Callback<T> realFuture) |
| Modifier and Type | Method and Description |
|---|---|
Callback |
RemoteRegistry.getPublishedCallback(long id) |
| Modifier and Type | Method and Description |
|---|---|
default <T> IPromise<T> |
ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback) |
<T> IPromise<T> |
LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB)
disconnect callback will never be called (local actor connection)
|
<T> IPromise<T> |
ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB) |
long |
RemoteRegistry.registerPublishedCallback(Callback cb) |
| Modifier and Type | Class and Description |
|---|---|
class |
CallbackRefSerializer.MyRemotedCallback |
| Modifier and Type | Method and Description |
|---|---|
Callback |
RemoteCallEntry.getCB() |
| Modifier and Type | Method and Description |
|---|---|
void |
RemoteCallEntry.setCB(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,
Consumer<Actor> actorDisconnecCB) |
| Constructor and Description |
|---|
TCPClientConnector(int port,
String host,
Callback<ActorClientConnector> disconnectCallback) |
Copyright © 2017. All rights reserved.