public class SelectionHandler extends java.lang.Object implements Actor, ActorLogging, RequiresMessageQueue<UnboundedMessageQueueSemantics>
Modifier and Type | Class and Description |
---|---|
static class |
SelectionHandler.ChannelAcceptable$ |
static class |
SelectionHandler.ChannelConnectable$ |
static class |
SelectionHandler.ChannelReadable$ |
static class |
SelectionHandler.ChannelWritable$ |
static interface |
SelectionHandler.HasFailureMessage |
static class |
SelectionHandler.Retry |
static class |
SelectionHandler.Retry$ |
static class |
SelectionHandler.SelectorBasedManager |
static class |
SelectionHandler.WorkerForCommand |
static class |
SelectionHandler.WorkerForCommand$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
SelectionHandler(SelectionHandlerSettings settings) |
Modifier and Type | Method and Description |
---|---|
static SupervisorStrategy |
connectionSupervisorStrategy()
Special supervisor strategy for parents of TCP connection and listener actors.
|
void |
postStop()
User overridable callback.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
void |
spawnChildWithCapacityProtection(SelectionHandler.WorkerForCommand cmd,
int retriesLeft) |
OneForOneStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising
child actors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preRestart, preStart, self, sender, unhandled
_log, log
public SelectionHandler(SelectionHandlerSettings settings)
public static final SupervisorStrategy connectionSupervisorStrategy()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public void postStop()
Actor
public OneForOneStrategy supervisorStrategy()
Actor
supervisorStrategy
in interface Actor
public void spawnChildWithCapacityProtection(SelectionHandler.WorkerForCommand cmd, int retriesLeft)