Class SingleActiveServiceKrouter<T extends SingleActiveServiceKrouter>

java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<T>
org.nustaq.kontraktor.routers.AbstractKrouter<T>
org.nustaq.kontraktor.routers.SingleActiveServiceKrouter<T>
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Executor, Monitorable, RemotedActor, ServingActor
Direct Known Subclasses:
HotColdFailoverKrouter, SimpleKrouter

public abstract class SingleActiveServiceKrouter<T extends SingleActiveServiceKrouter>
extends AbstractKrouter<T>
Created by ruedi on 13.03.17. Simply forwards all incoming calls to the registered Service. If a new service registers, it replaces the previous one. If a service is 'stateful', clients stick to their initial connected service instance as long it is available. Only once the initially connected service instance becomes unavailable, clients receive a failovernotification to re-establish state (e.g. subscriptions).
See Also:
Serialized Form