| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.routers | |
| org.nustaq.kontraktor.util |
| Modifier and Type | Method and Description |
|---|---|
void |
Actor.__addDeadLetter(Actor receiver,
String methodName) |
void |
Actor.__addRemoteConnection(ConnectionRegistry con) |
void |
Actor.__addStopHandler(Callback<SELF> cb) |
boolean |
Actor.__dispatchRemoteCall(ObjectSocket objSocket,
RemoteCallEntry rce,
ConnectionRegistry registry,
List<IPromise> createdFutures,
Object authContext,
BiFunction<Actor,String,Boolean> callInterceptor)
called if a message invokation from remote is received
|
Object |
Actor.__enqueueCall(Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Method |
Actor.__getCachedMethod(String methodName,
Actor actor,
BiFunction<Actor,String,Boolean> callInterceptor) |
void |
Actor.__removeRemoteConnection(ConnectionRegistry con) |
void |
Actor.__stop() |
protected void |
Actor.__stopImpl() |
IPromise |
Actor.ask(String messageId,
Object... args)
generic method for untyped remoting.
|
void |
Actor.delayed(long millis,
Runnable toRun)
schedule an action or call delayed.
|
void |
Actor.execute(Runnable command)
just enqueue given runable to this actors mailbox and execute on the actor's thread
WARNING: the similar named method execInThreadPool() works different (bad naming)
|
Actor |
Actor.getActorRef() |
int |
Actor.getCallbackSize()
WARNING: call rarely, this method might have O(n) runtime with default unbounded queues.
|
DispatcherThread |
Actor.getCurrentDispatcher() |
int |
Actor.getMailboxSize()
WARNING: call rarely, this method might have O(n) runtime with default unbounded queues.
|
int |
Actor.getQSizes()
WARNING: call rarely, this method might have O(n) runtime with default unbounded queues.
|
Scheduler |
Actor.getScheduler() |
Actor |
Actor.getUntypedRef() |
protected <T> T |
Actor.inThread(Actor proxy,
T cbInterface)
wraps an interface into a proxy of that interface.
|
boolean |
Actor.isCallbackQPressured()
WARNING: call rarely, this method might have O(n) runtime with default unbounded queues.
|
boolean |
Actor.isEmpty() |
boolean |
Actor.isMailboxPressured()
WARNING: call rarely, this method might have O(n) runtime with default unbounded queues.
|
boolean |
Actor.isProxy() |
boolean |
Actor.isPublished() |
boolean |
Actor.isRemote() |
boolean |
Actor.isStopped()
synchronous method returning true in case this actor is stopped
|
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
|
void |
Actor.stop()
stop receiving events.
|
void |
Actor.stopSafeClose()
avoids exception when closing an actor after stop has been called.
|
void |
Actor.tell(String messageId,
Object... args)
generic method for untyped remoting.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractKrouter.__dispatchRemoteCall(ObjectSocket objSocket,
RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry,
List<IPromise> createdFutures,
Object authContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
protected RemoteCallEntry |
AbstractKrouter.createErrorPromiseResponse(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry) |
protected void |
HotHotFailoverKrouter.dispatchImpl(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry,
boolean[] done,
Callback[] selected) |
protected boolean |
HotHotFailoverKrouter.dispatchRemoteCall(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry) |
protected boolean |
SingleActiveServiceKrouter.dispatchRemoteCall(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry) |
protected abstract boolean |
AbstractKrouter.dispatchRemoteCall(RemoteCallEntry rce,
ConnectionRegistry clientRemoteRegistry)
dispatch call to a service.
|
protected void |
AbstractKrouter.forwardCall(RemoteCallEntry rce,
Actor remoteRef,
ConnectionRegistry clientRemoteRegistry) |
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) |
protected Actor |
SimpleKrouter.getRemoteRef() |
protected Actor |
RoundRobinKrouter.getRemoteRef() |
protected Actor |
HotColdFailoverKrouter.getRemoteRef() |
protected abstract Actor |
SingleActiveServiceKrouter.getRemoteRef() |
protected void |
AbstractKrouter.handleServiceDiscon(Actor remoteRef) |
protected boolean |
AbstractKrouter.isStateful() |
protected void |
AbstractKrouter.sendFailoverNotification(ConnectionRegistry clientRemoteRegistry) |
protected void |
SimpleKrouter.setRemoteRef(Actor remoteRef) |
protected void |
HotColdFailoverKrouter.setRemoteRef(Actor remoteRef) |
protected abstract void |
SingleActiveServiceKrouter.setRemoteRef(Actor remoteRef) |
protected void |
RoundRobinKrouter.willDispatch() |
protected void |
SingleActiveServiceKrouter.willDispatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
Log.debug(Object source,
String msg) |
void |
Log.debugLong(Object source,
Throwable th,
String msg) |
void |
Log.error(Object source,
Throwable ex,
String msg) |
int |
Log.getSeverity() |
void |
Log.info(Object source,
String msg) |
void |
Log.infoLong(Object source,
Throwable ex,
String msg) |
void |
Log.resetToSysout() |
void |
Log.warn(Object source,
String msg) |
void |
Log.warnLong(Object source,
Throwable ex,
String msg) |
Copyright © 2019. All rights reserved.