| 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
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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.enqueueCallFromRemote(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) |
InvocationHandler |
Scheduler.getInvoker(Actor dispatcher,
Object toWrap) |
int |
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 |
Scheduler.tryIsolate(DispatcherThread dp,
Actor actorRef) |
void |
RemoteConnection.unpublishActor(Actor self)
unpublishes this actor by removing mappings and stuff.
|
| 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(Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
Actor |
ActorsImpl.newProxy(Class<? extends Actor> clz,
Scheduler sched,
int qsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
DispatcherThread.addActor(Actor act) |
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.enqueueCallFromRemote(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) |
InvocationHandler |
SimpleScheduler.getInvoker(Actor dispatcher,
Object toWrap) |
<T> T |
ActorProxyFactory.instantiateProxy(Actor target) |
<T> T |
SimpleScheduler.inThread(Actor actor,
T callback) |
boolean |
DispatcherThread.pollQs(Actor[] actors) |
protected CallEntry |
DispatcherThread.pollQueues(Actor[] actors) |
<T> void |
RemoteScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
<T> void |
SimpleScheduler.runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
void |
SimpleScheduler.tryIsolate(DispatcherThread dp,
Actor actorRef) |
| Modifier and Type | Method and Description |
|---|---|
Actor |
ActorsImpl.makeProxy(Class<? extends Actor> clz,
DispatcherThread disp,
int qs) |
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 java.util.function.Consumer<Actor> |
RemoteRegistry.disconnectHandler |
protected ConcurrentLinkedQueue<Actor> |
RemoteRegistry.remoteActors |
protected ConcurrentHashMap<Integer,Actor> |
RemoteRegistry.remoteActorSet |
protected java.util.function.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(int id) |
Actor |
RemoteRegistry.registerRemoteActorRef(Class actorClazz,
int remoteId,
Object client) |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<Actor> |
RemoteRegistry.getDisconnectHandler() |
ConcurrentLinkedQueue<Actor> |
RemoteRegistry.getRemoteActors() |
java.util.function.BiFunction<Actor,String,Boolean> |
RemoteRegistry.getRemoteCallInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
ActorServerConnector.connect(Actor facade,
java.util.function.Function<ObjectSocket,ObjectSink> factory) |
int |
RemoteRegistry.getRemoteId(Actor act) |
int |
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 |
|---|---|
void |
RemoteRegistry.setDisconnectHandler(java.util.function.Consumer<Actor> disconnectHandler) |
void |
RemoteRegistry.setRemoteCallInterceptor(java.util.function.BiFunction<Actor,String,Boolean> remoteCallInterceptor) |
| 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() |
| Modifier and Type | Method and Description |
|---|---|
protected Promise |
TCPServerConnector.acceptLoop(Actor facade,
int port,
java.util.function.Function<ObjectSocket,ObjectSink> factory,
Promise p) |
void |
TCPServerConnector.connect(Actor facade,
java.util.function.Function<ObjectSocket,ObjectSink> factory) |
void |
NIOServerConnector.connect(Actor facade,
java.util.function.Function<ObjectSocket,ObjectSink> factory) |
TCPNIOPublisher |
TCPNIOPublisher.facade(Actor facade) |
static Promise<ActorServer> |
TCPServerConnector.Publish(Actor facade,
int port,
Coding coding) |
static Promise<ActorServer> |
NIOServerConnector.Publish(Actor facade,
int port,
Coding coding) |
| Constructor and Description |
|---|
TCPNIOPublisher(Actor facade,
int port) |
TCPPublisher(Actor facade,
int port) |
| 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.
|
| Constructor and Description |
|---|
ActorExecutorService(Actor actor) |
Copyright © 2015. All rights reserved.