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, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, preStart, sender, supervisorStrategy, unhandledloggotUpstreamSubscription, initialPhase, isPumpFinished, nextPhase, pump, waitForUpstreamspublic ActorProcessorImpl(ActorMaterializerSettings settings)
protected final TransferPhase completedPhase()
completedPhase in interface Pumppublic ActorContext context()
Actorforward.
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()
Actorself ! 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 Pumppublic void pumpFailed(java.lang.Throwable e)
pumpFailed in interface Pumppublic void postStop()
Actorpublic void postRestart(java.lang.Throwable reason)
ActorpreStart().postRestart in interface Actorreason - 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.