public class ReliableDeliverySupervisor extends java.lang.Object implements Actor, ActorLogging
Modifier and Type | Class and Description |
---|---|
static class |
ReliableDeliverySupervisor.AttemptSysMsgRedelivery$ |
static class |
ReliableDeliverySupervisor.GotUid |
static class |
ReliableDeliverySupervisor.GotUid$ |
static class |
ReliableDeliverySupervisor.Idle$ |
static class |
ReliableDeliverySupervisor.IsIdle$ |
static class |
ReliableDeliverySupervisor.TooLongIdle$ |
static class |
ReliableDeliverySupervisor.Ungate$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
ReliableDeliverySupervisor(scala.Option<AkkaProtocolHandle> handleOrActive,
Address localAddress,
Address remoteAddress,
scala.Option<java.lang.Object> refuseUid,
AkkaProtocolTransport transport,
RemoteSettings settings,
AkkaPduCodec codec,
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers) |
Modifier and Type | Method and Description |
---|---|
protected abstract static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected abstract static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
static void |
akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1) |
static LoggingAdapter |
akka$actor$ActorLogging$$_log() |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
Cancellable |
autoResendTimer() |
scala.Option<scala.concurrent.duration.Deadline> |
bailoutAt() |
AkkaPduCodec |
codec() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
scala.Option<AkkaProtocolHandle> |
currentHandle() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
flushWait() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
gated(boolean writerTerminated,
boolean earlyUngateRequested) |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
idle() |
Address |
localAddress() |
static LoggingAdapter |
log() |
scala.Option<Cancellable> |
maxSilenceTimer() |
SeqNo |
nextSeq() |
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls
preStart() . |
void |
postStop()
User overridable callback.
|
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
static void |
preStart() |
static Props |
props(scala.Option<AkkaProtocolHandle> handleOrActive,
Address localAddress,
Address remoteAddress,
scala.Option<java.lang.Object> refuseUid,
AkkaProtocolTransport transport,
RemoteSettings settings,
AkkaPduCodec codec,
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers) |
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.
|
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> |
receiveBuffers() |
scala.Option<java.lang.Object> |
refuseUid() |
Address |
remoteAddress() |
AckedSendBuffer<EndpointManager.Send> |
resendBuffer() |
void |
reset() |
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
static ActorRef |
sender() |
long |
seqCounter() |
RemoteSettings |
settings() |
OneForOneStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising
child actors.
|
AkkaProtocolTransport |
transport() |
scala.Option<java.lang.Object> |
uid() |
boolean |
uidConfirmed() |
static void |
unhandled(java.lang.Object message) |
ActorRef |
writer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, preStart, sender, unhandled
log
public ReliableDeliverySupervisor(scala.Option<AkkaProtocolHandle> handleOrActive, Address localAddress, Address remoteAddress, scala.Option<java.lang.Object> refuseUid, AkkaProtocolTransport transport, RemoteSettings settings, AkkaPduCodec codec, java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers)
public static Props props(scala.Option<AkkaProtocolHandle> handleOrActive, Address localAddress, Address remoteAddress, scala.Option<java.lang.Object> refuseUid, AkkaProtocolTransport transport, RemoteSettings settings, AkkaPduCodec codec, java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers)
public static final ActorRef sender()
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPostStop()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
public static void preStart() throws java.lang.Exception
java.lang.Exception
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static void unhandled(java.lang.Object message)
protected abstract static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected abstract static void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public static LoggingAdapter akka$actor$ActorLogging$$_log()
public static void akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1)
public static LoggingAdapter log()
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public Address localAddress()
public Address remoteAddress()
public scala.Option<java.lang.Object> refuseUid()
public AkkaProtocolTransport transport()
public RemoteSettings settings()
public AkkaPduCodec codec()
public java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers()
public Cancellable autoResendTimer()
public OneForOneStrategy supervisorStrategy()
Actor
supervisorStrategy
in interface Actor
public scala.Option<AkkaProtocolHandle> currentHandle()
public AckedSendBuffer<EndpointManager.Send> resendBuffer()
public long seqCounter()
public void reset()
public SeqNo nextSeq()
public ActorRef writer()
public scala.Option<java.lang.Object> uid()
public scala.Option<scala.concurrent.duration.Deadline> bailoutAt()
public scala.Option<Cancellable> maxSilenceTimer()
public boolean uidConfirmed()
public void postStop()
Actor
public void postRestart(java.lang.Throwable reason)
Actor
preStart()
.postRestart
in interface Actor
reason
- the Throwable that caused the restart to happen
Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> gated(boolean writerTerminated, boolean earlyUngateRequested)
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> idle()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> flushWait()