public abstract class ActorProcessorImpl extends java.lang.Object implements Actor, ActorLogging, Pump
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
ActorProcessorImpl(ActorMaterializerSettings settings) |
Modifier and Type | Method and Description |
---|---|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
activeReceive() |
protected TransferPhase |
completedPhase() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
protected void |
fail(java.lang.Throwable e) |
protected void |
onError(java.lang.Throwable e) |
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls
preStart() . |
void |
postStop()
User overridable callback.
|
protected Inputs |
primaryInputs() |
protected Outputs |
primaryOutputs() |
void |
pumpFailed(java.lang.Throwable e) |
void |
pumpFinished() |
ExposedPublisherReceive |
receive()
Subclass may override
activeReceive() |
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
ActorMaterializerSettings |
settings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, preStart, sender, supervisorStrategy, unhandled
log
gotUpstreamSubscription, initialPhase, isPumpFinished, nextPhase, pump, waitForUpstreams
public ActorProcessorImpl(ActorMaterializerSettings settings)
protected final TransferPhase completedPhase()
completedPhase
in interface Pump
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 ActorMaterializerSettings settings()
protected Inputs primaryInputs()
protected Outputs primaryOutputs()
public final ExposedPublisherReceive receive()
activeReceive()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> activeReceive()
protected void onError(java.lang.Throwable e)
protected void fail(java.lang.Throwable e)
public void pumpFinished()
pumpFinished
in interface Pump
public void pumpFailed(java.lang.Throwable e)
pumpFailed
in interface Pump
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.