| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.util |
| Modifier and Type | Method and Description |
|---|---|
void |
Actor.__addDeadLetter(Actor receiver,
String methodName) |
void |
Actor.__addRemoteConnection(RemoteConnection con) |
void |
Actor.__addStopHandler(Callback<SELF> cb) |
boolean |
Actor.__dispatchRemoteCall(ObjectSocket objSocket,
RemoteCallEntry rce,
RemoteRegistry 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(RemoteConnection 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 exec() 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() |
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
|
SELF |
Actor.setThrowExWhenBlocked(boolean b)
tellMsg the execution machinery to throw an ActorBlockedException in case the actor is blocked trying to
put a message on an overloaded actor's mailbox/queue.
|
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.
|
void |
Actor.transferTo(Actor target)
only meaningful if this actor is a buffered actor (failover/reconnect scenarios).
|
| 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 © 2017. All rights reserved.