| 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 |
Callback<RemoteCallEntry> |
Actor.zzServerMsgCallback |
| Modifier and Type | Method and Description |
|---|---|
Callback |
KFlow.callback() |
Callback |
KFlow.cb() |
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).
|
void |
Actor.setServerMsgCallback(Callback<RemoteCallEntry> cb)
cb is invoked once the server sends back messages to a client,
the client does not necessary have an actor running but might simply connect
using ordinary mt code
|
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.
|
| Constructor and Description |
|---|
KFlow(Callback originalcb) |
| 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 |
ConnectionRegistry.getPublishedCallback(long id) |
| Modifier and Type | Method and Description |
|---|---|
default <T extends Actor> |
ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback) |
<T extends Actor> |
LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB)
disconnect callback will never be called (local actor connection)
|
<T extends Actor> |
ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB) |
long |
ConnectionRegistry.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 extends Actor> |
TCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB) |
| Constructor and Description |
|---|
TCPClientConnector(int port,
String host,
Callback<ActorClientConnector> disconnectCallback) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HotHotFailoverKrouter.dispatchImpl(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry,
boolean[] done,
Callback[] selected) |
protected void |
AbstractKrouter.forwardMultiCall(RemoteCallEntry rce,
Actor remoteRef,
ConnectionRegistry clientRemoteRegistry,
boolean[] done,
Callback[] selected) |
protected void |
AbstractKrouter.forwardMultiCallInternal(RemoteCallEntry rceIn,
Actor remoteRef,
ConnectionRegistry clientRemoteRegistry,
boolean[] done,
Callback[] selected) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Integer,Callback> |
SubscriptionSupport.getSubsMap() |
| Modifier and Type | Method and Description |
|---|---|
Promise<Boolean> |
SubscriptionSupport.subscribe(int id,
Callback cb) |
Promise<Boolean> |
SubscriptionSupport.unSubscribe(int id,
Callback cb) |
Copyright © 2019. All rights reserved.