| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.asyncio | |
| org.nustaq.kontraktor.impl | |
| org.nustaq.kontraktor.remoting.base | |
| org.nustaq.kontraktor.remoting.tcp | |
| org.nustaq.kontraktor.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Actor<SELF extends Actor>
Baseclass for actor/eventloop implementations.
|
interface |
ActorProxy<T extends Actor>
tagging interface.
|
| Modifier and Type | Field and Description |
|---|---|
Actor |
Actor.__self |
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Actor> |
Actor.sender
contains sender of a message if one actor messages to another actor
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Actor> |
Actors.AsActor(Class<T> actorClazz)
create an new actor.
|
static <T extends Actor> |
Actors.AsActor(Class<T> actorClazz,
int qSize)
create an new actor.
|
static <T extends Actor> |
Actors.AsActor(Class<T> actorClazz,
Scheduler scheduler)
create an new actor dispatched in the given DispatcherThread
|
static <T extends Actor> |
Actors.AsActor(Class<T> actorClazz,
Scheduler scheduler,
int qsize)
create an new actor dispatched in the given DispatcherThread
|
static <T extends Actor> |
Actors.AsBufferedActor(Class<T> actorClazz)
creates an actor instance which just bufferes messages (on heap).
|
| Modifier and Type | Method and Description |
|---|---|
static Actor |
Actors.AsUntypedActor(Actor instance) |
static Actor |
Actor.current() |
Actor |
ActorProxy.getActor() |
Actor |
Actor.getActorRef() |
| Modifier and Type | Method and Description |
|---|---|
void |
Actor.__addDeadLetter(Actor receiver,
String methodName) |
Object |
Actor.__enqueueCall(Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Method |
Actor.__getCachedMethod(String methodName,
Actor actor,
BiFunction<Actor,String,Boolean> callInterceptor) |
static Actor |
Actors.AsUntypedActor(Actor instance) |
Object |
Scheduler.enqueueCall(Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCall(Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCall(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCall(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
Scheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
InvocationHandler |
Scheduler.getInvoker(Actor dispatcher,
Object toWrap) |
long |
RemoteConnection.getRemoteId(Actor act) |
protected <T> T |
Actor.inThread(Actor proxy,
T cbInterface)
wraps an interface into a proxy of that interface.
|
<T> T |
Scheduler.inThread(Actor actor,
T callback)
Creates a wrapper on the given object enqueuing all calls to INTERFACE methods of the given object to the given actors's queue.
|
<T> void |
Scheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
void |
Actor.transferTo(Actor target)
only meaningful if this actor is a buffered actor (failover/reconnect scenarios).
|
void |
Scheduler.tryIsolate(DispatcherThread dp,
Actor actorRef) |
void |
RemoteConnection.unpublishActor(Actor self)
unpublishes this actor by removing mappings and stuff.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
Method |
Actor.__getCachedMethod(String methodName,
Actor actor,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
Scheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
| Modifier and Type | Class and Description |
|---|---|
static class |
_AsyncClientSocket.CLSActor |
| Modifier and Type | Method and Description |
|---|---|
Actor[] |
DispatcherThread.getActors() |
Actor |
CallEntry.getSendingActor() |
Actor |
CallEntry.getTargetActor() |
Actor |
ActorsImpl.makeProxy(Actor realActor,
Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.makeProxy(Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.newProxy(Actor instance,
Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
Actor |
ActorsImpl.newProxy(Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
DispatcherThread.addActor(Actor act) |
protected CallEntry |
SimpleScheduler.createCallentry(RemoteRegistry reg,
Object[] args,
boolean isCB,
Actor actor,
Method method) |
protected CallEntry |
RemoteScheduler.createCallentry(RemoteRegistry reg,
Object[] args,
boolean isCB,
Actor actor,
Method method) |
Object |
SimpleScheduler.enqueueCall(Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCall(Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCall(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCall(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
SimpleScheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
InvocationHandler |
SimpleScheduler.getInvoker(Actor dispatcher,
Object toWrap) |
<T> T |
ActorProxyFactory.instantiateProxy(Actor target) |
<T> T |
ActorProxyFactory.instantiateProxy(Class<? extends Actor> targetClass,
Actor target) |
<T> T |
SimpleScheduler.inThread(Actor actor,
T callback) |
Actor |
ActorsImpl.makeProxy(Actor realActor,
Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.newProxy(Actor instance,
Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
boolean |
DispatcherThread.pollQs(Actor[] actors,
int queues) |
protected CallEntry |
DispatcherThread.pollQueues(Actor[] actors,
int queues) |
<T> void |
SimpleScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
<T> void |
RemoteScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
void |
SimpleScheduler.tryIsolate(DispatcherThread dp,
Actor actorRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
SimpleScheduler.enqueueCallFromRemote(RemoteRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
<T> T |
ActorProxyFactory.instantiateProxy(Class<? extends Actor> targetClass,
Actor target) |
Actor |
ActorsImpl.makeProxy(Actor realActor,
Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.makeProxy(Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.newProxy(Actor instance,
Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
Actor |
ActorsImpl.newProxy(Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
| Constructor and Description |
|---|
CallbackWrapper(Actor targetQ,
Callback<T> realFuture) |
CallEntry(T target,
Method method,
Object[] args,
Actor sender,
Actor targetActor,
boolean isCB) |
CallEntry(T target,
Method method,
Object[] args,
Actor sender,
Actor targetActor,
boolean isCB) |
| Modifier and Type | Class and Description |
|---|---|
class |
ActorClient<T extends Actor>
Created by ruedi on 10/05/15.
|
| Modifier and Type | Field and Description |
|---|---|
protected Actor |
ActorServer.facade |
| Modifier and Type | Field and Description |
|---|---|
protected Consumer<Actor> |
RemoteRegistry.disconnectHandler |
protected ConcurrentLinkedQueue<Actor> |
RemoteRegistry.remoteActors |
protected ConcurrentHashMap<Long,Actor> |
RemoteRegistry.remoteActorSet |
protected BiFunction<Actor,String,Boolean> |
RemoteRegistry.remoteCallInterceptor |
| Modifier and Type | Method and Description |
|---|---|
Actor |
LocalConnectable.getActor() |
Actor |
ActorServer.getFacade() |
Actor |
RemoteRegistry.getFacadeActor() |
abstract Actor |
RemoteRegistry.getFacadeProxy() |
Actor |
RemoteRegistry.getPublishedActor(long id) |
Actor |
RemoteRegistry.registerRemoteActorRef(Class actorClazz,
long remoteId,
Object client) |
| Modifier and Type | Method and Description |
|---|---|
Consumer<Actor> |
RemoteRegistry.getDisconnectHandler() |
ConcurrentLinkedQueue<Actor> |
RemoteRegistry.getRemoteActors() |
BiFunction<Actor,String,Boolean> |
RemoteRegistry.getRemoteCallInterceptor() |
IPromise<Actor> |
SessionResurrector.reanimate(String sessionId,
long remoteRefId)
reanimate a remote ref of a resurrected facade connection
|
| Modifier and Type | Method and Description |
|---|---|
void |
ActorServerConnector.connect(Actor facade,
Function<ObjectSocket,ObjectSink> factory) |
ActorPublisher |
ActorPublisher.facade(Actor facade) |
long |
RemoteRegistry.getRemoteId(Actor act) |
long |
RemoteRegistry.publishActor(Actor act) |
void |
RemoteRegistry.registerRemoteRefDirect(Actor act) |
protected void |
RemoteRegistry.remoteRefStopped(Actor actor)
warning: MThreaded
|
protected void |
RemoteRegistry.removeRemoteActor(Actor act) |
void |
RemoteRegistry.setFacadeActor(Actor facadeActor) |
void |
RemoteRegistry.unpublishActor(Actor act)
remove current
|
| Modifier and Type | Method and Description |
|---|---|
<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) |
IPromise<T> |
ActorClient.connect(int qsiz,
Consumer<Actor> discon) |
IPromise<ActorServer> |
ActorPublisher.publish(Consumer<Actor> disconnectCallback) |
void |
RemoteRegistry.setDisconnectHandler(Consumer<Actor> disconnectHandler) |
void |
ActorServer.start(Consumer<Actor> disconnectHandler) |
| Constructor and Description |
|---|
ActorServer(ActorServerConnector connector,
Actor facade,
Coding coding) |
LocalConnectable(Actor actor) |
| Modifier and Type | Class and Description |
|---|---|
static class |
TCPClientConnector.RemotingHelper |
| Modifier and Type | Method and Description |
|---|---|
Actor |
TCPNIOPublisher.getFacade() |
Actor |
TCPPublisher.getFacade()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Promise |
TCPServerConnector.acceptLoop(Actor facade,
int port,
Function<ObjectSocket,ObjectSink> factory,
Promise p) |
void |
TCPServerConnector.connect(Actor facade,
Function<ObjectSocket,ObjectSink> factory) |
void |
NIOServerConnector.connect(Actor facade,
Function<ObjectSocket,ObjectSink> factory) |
TCPNIOPublisher |
TCPNIOPublisher.facade(Actor facade) |
TCPPublisher |
TCPPublisher.facade(Actor facade)
Deprecated.
|
static Promise<ActorServer> |
TCPServerConnector.Publish(Actor facade,
int port,
Coding coding) |
static IPromise<ActorServer> |
NIOServerConnector.Publish(Actor facade,
int port,
Coding coding) |
static Promise<ActorServer> |
TCPServerConnector.Publish(Actor facade,
int port,
Coding coding,
Consumer<Actor> disconnectCB) |
static Promise<ActorServer> |
NIOServerConnector.Publish(Actor facade,
int port,
Coding coding,
Consumer<Actor> disconnectHandler) |
| Modifier and Type | Method and Description |
|---|---|
<T> IPromise<T> |
TCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB) |
static Promise<ActorServer> |
TCPServerConnector.Publish(Actor facade,
int port,
Coding coding,
Consumer<Actor> disconnectCB) |
static Promise<ActorServer> |
NIOServerConnector.Publish(Actor facade,
int port,
Coding coding,
Consumer<Actor> disconnectHandler) |
IPromise<ActorServer> |
TCPNIOPublisher.publish(Consumer<Actor> disconnectHandler) |
IPromise<ActorServer> |
TCPPublisher.publish(Consumer<Actor> disconnectCallback)
Deprecated.
|
| Constructor and Description |
|---|
TCPNIOPublisher(Actor facade,
int port) |
TCPPublisher(Actor facade,
int port)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Hoarde<T extends Actor>
Created by ruedi on 07.09.14.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Log
Created by ruedi on 24.08.14.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
StubGenerator.genStub(Class<? extends Actor> cl) |
static void |
StubGenerator.genStub(Class<? extends Actor> cl,
PrintStream out) |
| Constructor and Description |
|---|
ActorExecutorService(Actor actor) |
Copyright © 2017. All rights reserved.