Uses of Class
org.nustaq.kontraktor.Actor
Packages that use Actor
Package
Description
-
Uses of Actor in org.nustaq.kontraktor
Classes in org.nustaq.kontraktor with type parameters of type ActorModifier and TypeClassDescriptionclassBaseclass for actor/eventloop implementations.interfaceActorProxy<T extends Actor>tagging interface.Fields in org.nustaq.kontraktor declared as ActorFields in org.nustaq.kontraktor with type parameters of type ActorModifier and TypeFieldDescriptionstatic ThreadLocal<Actor>Actor.sendercontains sender of a message if one actor messages to another actorMethods in org.nustaq.kontraktor with type parameters of type ActorModifier and TypeMethodDescriptionstatic <T extends Actor>
Tcreate an new actor.static <T extends Actor>
Tcreate an new actor.static <T extends Actor>
Tcreate an new actor dispatched in the given DispatcherThreadstatic <T extends Actor>
Tcreate an new actor dispatched in the given DispatcherThreadMethods in org.nustaq.kontraktor that return ActorModifier and TypeMethodDescriptionstatic ActorActors.AsUntypedActor(Actor instance) static ActorActor.current()ActorProxy.getActor()Actor.getActorRef()Actor.getUntypedRef()Methods in org.nustaq.kontraktor with parameters of type ActorModifier and TypeMethodDescriptionvoidActor.__addDeadLetter(Actor receiver, String methodName) Actor.__enqueueCall(Actor receiver, String methodName, Object[] args, boolean isCB) Actor.__getCachedMethod(String methodName, Actor actor, BiFunction<Actor, String, Boolean> callInterceptor) static ActorActors.AsUntypedActor(Actor instance) Scheduler.enqueueCall(Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB) Scheduler.enqueueCall(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB) Scheduler.enqueueCallFromRemote(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB, Object securityContext, BiFunction<Actor, String, Boolean> callInterceptor, RemoteCallEntry remoteCallEntry) Warning: side effects on RCE transient to pass Method object from lookup up the calling hierarchyScheduler.getInvoker(Actor dispatcher, Object toWrap) protected <T> Twraps an interface into a proxy of that interface.<T> TCreates a wrapper on the given object enqueuing all calls to INTERFACE methods of the given object to the given actors's queue.<T> voidScheduler.runBlockingCall(Actor emitter, Callable<T> toCall, Callback<T> resultHandler) voidScheduler.tryIsolate(DispatcherThread dp, Actor actorRef) Method parameters in org.nustaq.kontraktor with type arguments of type ActorModifier and TypeMethodDescriptionbooleanActor.__dispatchRemoteCall(ObjectSocket objSocket, RemoteCallEntry rce, ConnectionRegistry registry, List<IPromise> createdFutures, Object authContext, BiFunction<Actor, String, Boolean> callInterceptor, long delayCode) called if a message invokation from remote is receivedActor.__getCachedMethod(String methodName, Actor actor, BiFunction<Actor, String, Boolean> callInterceptor) Scheduler.enqueueCallFromRemote(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB, Object securityContext, BiFunction<Actor, String, Boolean> callInterceptor, RemoteCallEntry remoteCallEntry) Warning: side effects on RCE transient to pass Method object from lookup up the calling hierarchy -
Uses of Actor in org.nustaq.kontraktor.asyncio
Subclasses of Actor in org.nustaq.kontraktor.asyncio -
Uses of Actor in org.nustaq.kontraktor.impl
Methods in org.nustaq.kontraktor.impl that return ActorModifier and TypeMethodDescriptionActor[]DispatcherThread.getActors()CallEntry.getSendingActor()CallEntry.getTargetActor()ActorsImpl.makeProxy(Class<? extends Actor> clz, DispatcherThread disp, int qs) ActorsImpl.makeProxy(Actor realActor, Class<? extends Actor> clz, DispatcherThread disp, int qs) Methods in org.nustaq.kontraktor.impl with parameters of type ActorModifier and TypeMethodDescriptionvoidprotected CallEntryRemoteScheduler.createCallentry(ConnectionRegistry reg, Object[] args, boolean isCB, Actor actor, Method method) protected CallEntrySimpleScheduler.createCallentry(ConnectionRegistry reg, Object[] args, boolean isCB, Actor actor, Method method) SimpleScheduler.enqueueCall(Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB) SimpleScheduler.enqueueCall(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB) SimpleScheduler.enqueueCallFromRemote(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB, Object securityContext, BiFunction<Actor, String, Boolean> callInterceptor, RemoteCallEntry remoteCallEntry) SimpleScheduler.getInvoker(Actor dispatcher, Object toWrap) <T> TActorProxyFactory.instantiateProxy(Class<? extends Actor> targetClass, Actor target) <T> TActorProxyFactory.instantiateProxy(Actor target) <T> TActorsImpl.makeProxy(Actor realActor, Class<? extends Actor> clz, DispatcherThread disp, int qs) booleanprotected CallEntryDispatcherThread.pollQueues(Actor[] actors, int queues) <T> voidRemoteScheduler.runBlockingCall(Actor emitter, Callable<T> toCall, Callback<T> resultHandler) <T> voidSimpleScheduler.runBlockingCall(Actor emitter, Callable<T> toCall, Callback<T> resultHandler) voidSimpleScheduler.tryIsolate(DispatcherThread dp, Actor actorRef) Method parameters in org.nustaq.kontraktor.impl with type arguments of type ActorModifier and TypeMethodDescriptionSimpleScheduler.enqueueCallFromRemote(ConnectionRegistry reg, Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB, Object securityContext, BiFunction<Actor, String, Boolean> callInterceptor, RemoteCallEntry remoteCallEntry) <T> TActorProxyFactory.instantiateProxy(Class<? extends Actor> targetClass, Actor target) ActorsImpl.makeProxy(Class<? extends Actor> clz, DispatcherThread disp, int qs) ActorsImpl.makeProxy(Actor realActor, Class<? extends Actor> clz, DispatcherThread disp, int qs) Constructors in org.nustaq.kontraktor.impl with parameters of type Actor -
Uses of Actor in org.nustaq.kontraktor.remoting.base
Classes in org.nustaq.kontraktor.remoting.base with type parameters of type ActorModifier and TypeClassDescriptionclassActorClient<T extends Actor>Created by ruedi on 10/05/15.classReconnectableRemoteRef<T extends Actor>wraps a connectableActor and automatically tries to reconnect in case it is downFields in org.nustaq.kontraktor.remoting.base declared as ActorFields in org.nustaq.kontraktor.remoting.base with type parameters of type ActorModifier and TypeFieldDescriptionConnectionRegistry.disconnectHandlerprotected ConcurrentHashMap<Long,Actor> ConnectionRegistry.remoteActorMapprotected ConcurrentLinkedQueue<Actor>ConnectionRegistry.remoteActorsprotected BiFunction<Actor,String, Boolean> ConnectionRegistry.remoteCallInterceptorMethods in org.nustaq.kontraktor.remoting.base with type parameters of type ActorModifier and TypeMethodDescriptionConnectableActor.connect()ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback) ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) disconnect callback will never be called (local actor connection)Methods in org.nustaq.kontraktor.remoting.base that return ActorModifier and TypeMethodDescriptionLocalConnectable.getActor()ActorServer.getFacade()ConnectionRegistry.getFacadeActor()abstract ActorConnectionRegistry.getFacadeProxy()ConnectionRegistry.getPublishedActor(long id) ConnectionRegistry.registerRemoteActorRef(Class actorClazz, long remoteId, Object client) Methods in org.nustaq.kontraktor.remoting.base that return types with arguments of type ActorModifier and TypeMethodDescriptionConnectableActor.getActorClass()LocalConnectable.getActorClass()ServiceDescription.getActorClazz()ConnectionRegistry.getDisconnectHandler()ConnectionRegistry.getRemoteActorMap()ConnectionRegistry.getRemoteActors()ConnectionRegistry.getRemoteCallInterceptor()reanimate a remote ref of a resurrected facade connectionMethods in org.nustaq.kontraktor.remoting.base with parameters of type ActorModifier and TypeMethodDescriptionvoidvoidActorServerConnector.connect(Actor facade, Function<ObjectSocket, ObjectSink> factory) longConnectionRegistry.getRemoteId(Actor act) longConnectionRegistry.publishActor(Actor act) voidConnectionRegistry.registerRemoteRefDirect(Actor act) voidReconnectableRemoteRef.ReconnectableListener.remoteConnected(Actor connected) voidReconnectableRemoteRef.ReconnectableListener.remoteDisconnected(Actor disconnected) protected voidConnectionRegistry.remoteRefStopped(Actor actor) warning: MThreadedprotected voidConnectionRegistry.removeRemoteActor(Actor act) voidConnectionRegistry.setFacadeActor(Actor facadeActor) voidConnectionRegistry.unpublishActor(Actor act) remove current <remoteId,actor> mappings if present.Method parameters in org.nustaq.kontraktor.remoting.base with type arguments of type ActorModifier and TypeMethodDescriptionConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) disconnect callback will never be called (local actor connection)default ConnectableActorActorPublisher.getConnectable(String host, Class<? extends Actor> actorClazz) voidConnectionRegistry.setDisconnectHandler(Consumer<Actor> disconnectHandler) voidConstructors in org.nustaq.kontraktor.remoting.base with parameters of type ActorModifierConstructorDescriptionActorServer(ActorServerConnector connector, Actor facade, Coding coding) LocalConnectable(Actor actor) -
Uses of Actor in org.nustaq.kontraktor.remoting.tcp
Subclasses of Actor in org.nustaq.kontraktor.remoting.tcpMethods in org.nustaq.kontraktor.remoting.tcp with type parameters of type ActorModifier and TypeMethodDescriptionTCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) Methods in org.nustaq.kontraktor.remoting.tcp that return ActorMethods in org.nustaq.kontraktor.remoting.tcp that return types with arguments of type ActorMethods in org.nustaq.kontraktor.remoting.tcp with parameters of type ActorModifier and TypeMethodDescriptionprotected PromiseTCPServerConnector.acceptLoop(Actor facade, int port, Function<ObjectSocket, ObjectSink> factory, Promise p) voidNIOServerConnector.connect(Actor facade, Function<ObjectSocket, ObjectSink> factory) voidTCPServerConnector.connect(Actor facade, Function<ObjectSocket, ObjectSink> factory) static IPromise<ActorServer>static Promise<ActorServer>NIOServerConnector.Publish(Actor facade, int port, Coding coding, Consumer<Actor> disconnectHandler) static Promise<ActorServer>static Promise<ActorServer>Method parameters in org.nustaq.kontraktor.remoting.tcp with type arguments of type ActorModifier and TypeMethodDescriptionTCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) TCPNIOPublisher.getConnectable(String host, Class<? extends Actor> actorClazz) static Promise<ActorServer>NIOServerConnector.Publish(Actor facade, int port, Coding coding, Consumer<Actor> disconnectHandler) static Promise<ActorServer>Constructors in org.nustaq.kontraktor.remoting.tcp with parameters of type ActorModifierConstructorDescriptionTCPNIOPublisher(Actor facade, int port) TCPPublisher(Actor facade, int port) -
Uses of Actor in org.nustaq.kontraktor.routers
Subclasses of Actor in org.nustaq.kontraktor.routersModifier and TypeClassDescriptionclassAbstractKrouter<T extends AbstractKrouter>base class for load balancers and failover proxies.classHotColdFailoverKrouter<T extends HotColdFailoverKrouter>Simple HotCold failover router - several service instances might connect, but only first one is used (as long it is connected).classHotHotFailoverKrouter<T extends HotHotFailoverKrouter>HotHot failover Router forwards incoming messages to all registered service actors.classthis is a dummy implementation as runtime generation of classes does not allow proxies on abstract classesclassA load balancing Krouter.classa Krouter supporting dynamic replacement of a single service.classCreated by ruedi on 13.03.17.Fields in org.nustaq.kontraktor.routers declared as ActorModifier and TypeFieldDescriptionprotected static ActorRouting.pingerconnect a client to a remote KrouterMethods in org.nustaq.kontraktor.routers that return ActorModifier and TypeMethodDescriptionprotected static ActorRouting.getPinger()protected ActorHotColdFailoverKrouter.getRemoteRef()protected ActorRoundRobinKrouter.getRemoteRef()protected ActorSimpleKrouter.getRemoteRef()protected abstract ActorSingleActiveServiceKrouter.getRemoteRef()Methods in org.nustaq.kontraktor.routers that return types with arguments of type ActorModifier and TypeMethodDescriptionAbstractKrouter.getServices()HotColdFailoverKrouter.getServices()HotHotFailoverKrouter.getServices()Krouter.getServices()SingleActiveServiceKrouter.getServices()Methods in org.nustaq.kontraktor.routers with parameters of type ActorModifier and TypeMethodDescriptionprotected voidAbstractKrouter.forwardCall(RemoteCallEntry rce, Actor remoteRef, ConnectionRegistry clientRemoteRegistry) protected voidAbstractKrouter.forwardCallInternal(RemoteCallEntry rce, Actor remoteRef, ConnectionRegistry clientRemoteRegistry) protected voidAbstractKrouter.forwardMultiCall(RemoteCallEntry rce, Actor remoteRef, ConnectionRegistry clientRemoteRegistry, boolean[] done, Callback[] selected) protected voidAbstractKrouter.forwardMultiCallInternal(RemoteCallEntry rceIn, Actor remoteRef, ConnectionRegistry clientRemoteRegistry, boolean[] done, Callback[] selected) protected voidAbstractKrouter.handleServiceDiscon(Actor remoteRef) Routing.registerService(ConnectableActor connectable, Actor service, Consumer<Actor> disconnectCallback, boolean stateful) publish and register a service at a remote Krouterabstract voidAbstractKrouter.router$handleServiceDisconnect(Actor disconnected) voidHotColdFailoverKrouter.router$handleServiceDisconnect(Actor x) voidHotHotFailoverKrouter.router$handleServiceDisconnect(Actor x) voidKrouter.router$handleServiceDisconnect(Actor disconnected) voidSimpleKrouter.router$handleServiceDisconnect(Actor x) abstract voidSingleActiveServiceKrouter.router$handleServiceDisconnect(Actor x) AbstractKrouter.router$RegisterService(Actor remoteRef, boolean stateful) HotHotFailoverKrouter.router$RegisterService(Actor remoteRef, boolean stateful) Krouter.router$RegisterService(Actor remoteRef, boolean stateful) SingleActiveServiceKrouter.router$RegisterService(Actor remoteRef, boolean stateful) protected voidHotColdFailoverKrouter.setRemoteRef(Actor remoteRef) protected voidSimpleKrouter.setRemoteRef(Actor remoteRef) protected abstract voidSingleActiveServiceKrouter.setRemoteRef(Actor remoteRef) Method parameters in org.nustaq.kontraktor.routers with type arguments of type ActorModifier and TypeMethodDescriptionbooleanAbstractKrouter.__dispatchRemoteCall(ObjectSocket objSocket, RemoteCallEntry rce, ConnectionRegistry clientRemoteRegistry, List<IPromise> createdFutures, Object authContext, BiFunction<Actor, String, Boolean> callInterceptor, long delayCode) Routing.connectClient(ConnectableActor connectable, Consumer<Actor> disconnectCallback) Routing.registerService(ConnectableActor connectable, Actor service, Consumer<Actor> disconnectCallback, boolean stateful) publish and register a service at a remote Krouter -
Uses of Actor in org.nustaq.kontraktor.util
Classes in org.nustaq.kontraktor.util with type parameters of type ActorSubclasses of Actor in org.nustaq.kontraktor.utilMethod parameters in org.nustaq.kontraktor.util with type arguments of type ActorModifier and TypeMethodDescriptionstatic voidstatic voidStubGenerator.genStub(Class<? extends Actor> cl, PrintStream out) Constructors in org.nustaq.kontraktor.util with parameters of type Actor