| 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.__publishTarget |
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 |
Actors.AsUntypedActor(Actor instance) |
static Actor |
Actor.current() |
Actor |
ActorProxy.getActor() |
Actor |
Actor.getActorRef() |
Actor |
Actor.getUntypedRef() |
| 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(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCall(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
Scheduler.enqueueCallFromRemote(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
Scheduler.enqueueCallFromRemote(ConnectionRegistry 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) |
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) |
| Modifier and Type | Method and Description |
|---|---|
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
|
Method |
Actor.__getCachedMethod(String methodName,
Actor actor,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
Scheduler.enqueueCallFromRemote(ConnectionRegistry 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(ConnectionRegistry reg,
Object[] args,
boolean isCB,
Actor actor,
Method method) |
protected CallEntry |
RemoteScheduler.createCallentry(ConnectionRegistry 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(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCall(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
Object |
SimpleScheduler.enqueueCallFromRemote(ConnectionRegistry reg,
Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB,
Object securityContext,
BiFunction<Actor,String,Boolean> callInterceptor) |
Object |
SimpleScheduler.enqueueCallFromRemote(ConnectionRegistry 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(ConnectionRegistry 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.
|
class |
ReconnectableRemoteRef<T extends Actor>
wraps a connectableActor and automatically tries to reconnect in case it is down
|
| Modifier and Type | Field and Description |
|---|---|
protected Actor |
ActorServer.facade |
| Modifier and Type | Field and Description |
|---|---|
protected Consumer<Actor> |
ConnectionRegistry.disconnectHandler |
protected ConcurrentHashMap<Long,Actor> |
ConnectionRegistry.remoteActorMap |
protected ConcurrentLinkedQueue<Actor> |
ConnectionRegistry.remoteActors |
protected BiFunction<Actor,String,Boolean> |
ConnectionRegistry.remoteCallInterceptor |
| Modifier and Type | Method and Description |
|---|---|
default <T extends Actor> |
ConnectableActor.connect() |
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) |
| Modifier and Type | Method and Description |
|---|---|
Actor |
LocalConnectable.getActor() |
Actor |
ActorServer.getFacade() |
Actor |
ConnectionRegistry.getFacadeActor() |
abstract Actor |
ConnectionRegistry.getFacadeProxy() |
Actor |
ConnectionRegistry.getPublishedActor(long id) |
Actor |
ConnectionRegistry.registerRemoteActorRef(Class actorClazz,
long remoteId,
Object client) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Actor> |
LocalConnectable.getActorClass() |
Class<? extends Actor> |
ConnectableActor.getActorClass() |
Consumer<Actor> |
ConnectionRegistry.getDisconnectHandler() |
ConcurrentHashMap<Long,Actor> |
ConnectionRegistry.getRemoteActorMap() |
ConcurrentLinkedQueue<Actor> |
ConnectionRegistry.getRemoteActors() |
BiFunction<Actor,String,Boolean> |
ConnectionRegistry.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 |
ConnectionRegistry.close(Actor closedOne) |
void |
ActorServerConnector.connect(Actor facade,
Function<ObjectSocket,ObjectSink> factory) |
ActorPublisher |
ActorPublisher.facade(Actor facade) |
long |
ConnectionRegistry.getRemoteId(Actor act) |
long |
ConnectionRegistry.publishActor(Actor act) |
void |
ConnectionRegistry.registerRemoteRefDirect(Actor act) |
void |
ReconnectableRemoteRef.ReconnectableListener.remoteConnected(Actor connected) |
void |
ReconnectableRemoteRef.ReconnectableListener.remoteDisconnected(Actor disconnected) |
protected void |
ConnectionRegistry.remoteRefStopped(Actor actor)
warning: MThreaded
|
protected void |
ConnectionRegistry.removeRemoteActor(Actor act) |
void |
ConnectionRegistry.setFacadeActor(Actor facadeActor) |
void |
ConnectionRegistry.unpublishActor(Actor act)
remove current
|
| Modifier and Type | Method and Description |
|---|---|
<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) |
IPromise<T> |
ActorClient.connect(int qsiz,
Consumer<Actor> discon) |
IPromise<ActorServer> |
ActorPublisher.publish(Consumer<Actor> disconnectCallback) |
void |
ConnectionRegistry.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 |
|---|---|
<T extends Actor> |
TCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback,
Consumer<Actor> actorDisconnecCB) |
| Modifier and Type | Method and Description |
|---|---|
Actor |
TCPNIOPublisher.getFacade() |
Actor |
TCPPublisher.getFacade()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Actor> |
TCPConnectable.getActorClass() |
| 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 extends Actor> |
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 |
AbstractKrouter<T extends AbstractKrouter>
base class for load balancers and failover proxies.
|
class |
HotColdFailoverKrouter<T extends HotColdFailoverKrouter>
Simple HotCold failover router - several service instances might connect, but only
first one is used (as long it is connected).
|
class |
HotHotFailoverKrouter<T extends HotHotFailoverKrouter>
HotHot failover Router
forwards incoming messages to all registered service actors.
|
class |
Krouter
this is a dummy implementation as runtime generation of classes does not allow
proxies on abstract classes
|
class |
RoundRobinKrouter
A load balancing Krouter.
|
class |
SimpleKrouter
a Krouter supporting dynamic replacement of a single service.
|
class |
SingleActiveServiceKrouter<T extends SingleActiveServiceKrouter>
Created by ruedi on 13.03.17.
|
| Modifier and Type | Field and Description |
|---|---|
protected static Actor |
Routing.pinger
connect a client to a remote Krouter
|
| Modifier and Type | Method and Description |
|---|---|
protected static Actor |
Routing.getPinger() |
protected Actor |
SimpleKrouter.getRemoteRef() |
protected Actor |
RoundRobinKrouter.getRemoteRef() |
protected Actor |
HotColdFailoverKrouter.getRemoteRef() |
protected abstract Actor |
SingleActiveServiceKrouter.getRemoteRef() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Actor> |
Krouter.getServices() |
protected List<Actor> |
HotColdFailoverKrouter.getServices() |
protected List<Actor> |
HotHotFailoverKrouter.getServices() |
protected List<Actor> |
SingleActiveServiceKrouter.getServices() |
protected abstract List<Actor> |
AbstractKrouter.getServices() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractKrouter.forwardCall(RemoteCallEntry rce,
Actor remoteRef,
ConnectionRegistry clientRemoteRegistry) |
protected void |
AbstractKrouter.forwardCallInternal(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 void |
AbstractKrouter.handleServiceDiscon(Actor remoteRef) |
static IPromise<Object> |
Routing.registerService(ConnectableActor connectable,
Actor service,
Consumer<Actor> disconnectCallback,
boolean stateful)
publish and register a service at a remote Krouter
|
void |
Krouter.router$handleServiceDisconnect(Actor disconnected) |
void |
SimpleKrouter.router$handleServiceDisconnect(Actor x) |
void |
HotColdFailoverKrouter.router$handleServiceDisconnect(Actor x) |
void |
HotHotFailoverKrouter.router$handleServiceDisconnect(Actor x) |
abstract void |
SingleActiveServiceKrouter.router$handleServiceDisconnect(Actor x) |
abstract void |
AbstractKrouter.router$handleServiceDisconnect(Actor disconnected) |
IPromise |
Krouter.router$RegisterService(Actor remoteRef,
boolean stateful) |
IPromise |
HotHotFailoverKrouter.router$RegisterService(Actor remoteRef,
boolean stateful) |
IPromise |
SingleActiveServiceKrouter.router$RegisterService(Actor remoteRef,
boolean stateful) |
IPromise |
AbstractKrouter.router$RegisterService(Actor remoteRef,
boolean stateful) |
protected void |
SimpleKrouter.setRemoteRef(Actor remoteRef) |
protected void |
HotColdFailoverKrouter.setRemoteRef(Actor remoteRef) |
protected abstract void |
SingleActiveServiceKrouter.setRemoteRef(Actor remoteRef) |
| 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) |
static IPromise<Object> |
Routing.connectClient(ConnectableActor connectable,
Consumer<Actor> disconnectCallback) |
static IPromise<Object> |
Routing.registerService(ConnectableActor connectable,
Actor service,
Consumer<Actor> disconnectCallback,
boolean stateful)
publish and register a service at a remote Krouter
|
| 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 © 2019. All rights reserved.