public abstract class FanIn extends java.lang.Object implements Actor, ActorLogging, Pump
Modifier and Type | Class and Description |
---|---|
static class |
FanIn.InputBunch |
static class |
FanIn.OnComplete |
static class |
FanIn.OnComplete$ |
static class |
FanIn.OnError |
static class |
FanIn.OnError$ |
static class |
FanIn.OnNext |
static class |
FanIn.OnNext$ |
static class |
FanIn.OnSubscribe |
static class |
FanIn.OnSubscribe$ |
static class |
FanIn.SubInput<T> |
static class |
FanIn.SubInput$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
FanIn(ActorMaterializerSettings settings,
int inputCount) |
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 abstract static void |
akka$stream$impl$Pump$_setter_$completedPhase_$eq(TransferPhase x$1) |
static void |
akka$stream$impl$Pump$$currentAction_$eq(scala.Function0<scala.runtime.BoxedUnit> x$1) |
static scala.Function0<scala.runtime.BoxedUnit> |
akka$stream$impl$Pump$$currentAction() |
static void |
akka$stream$impl$Pump$$transferState_$eq(TransferState x$1) |
static TransferState |
akka$stream$impl$Pump$$transferState() |
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) |
static int |
Cancelled() |
static int |
Completed() |
protected TransferPhase |
completedPhase() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
static int |
Depleted() |
protected void |
fail(java.lang.Throwable e) |
static void |
gotUpstreamSubscription() |
static void |
initialPhase(int waitForUpstream,
TransferPhase andThen) |
protected FanIn.InputBunch |
inputBunch() |
int |
inputCount() |
static boolean |
isPumpFinished() |
static LoggingAdapter |
log() |
static int |
Marked() |
static void |
nextPhase(TransferPhase phase) |
static int |
Pending() |
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() |
protected Outputs |
primaryOutputs() |
static void |
pump() |
void |
pumpFailed(java.lang.Throwable e) |
void |
pumpFinished() |
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.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
static ActorRef |
sender() |
ActorMaterializerSettings |
settings() |
static SupervisorStrategy |
supervisorStrategy() |
static void |
unhandled(java.lang.Object message) |
static void |
waitForUpstreams(int waitForUpstream) |
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 FanIn(ActorMaterializerSettings settings, int inputCount)
public static final int Marked()
public static final int Pending()
public static final int Depleted()
public static final int Completed()
public static final int Cancelled()
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 SupervisorStrategy supervisorStrategy()
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 static TransferState akka$stream$impl$Pump$$transferState()
public static void akka$stream$impl$Pump$$transferState_$eq(TransferState x$1)
public static scala.Function0<scala.runtime.BoxedUnit> akka$stream$impl$Pump$$currentAction()
public static void akka$stream$impl$Pump$$currentAction_$eq(scala.Function0<scala.runtime.BoxedUnit> x$1)
public static final void initialPhase(int waitForUpstream, TransferPhase andThen)
public static final void waitForUpstreams(int waitForUpstream)
public static void gotUpstreamSubscription()
public static final void nextPhase(TransferPhase phase)
public static final boolean isPumpFinished()
public static final void pump()
protected abstract static void akka$stream$impl$Pump$_setter_$completedPhase_$eq(TransferPhase x$1)
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()
public int inputCount()
protected Outputs primaryOutputs()
protected FanIn.InputBunch inputBunch()
public void pumpFinished()
pumpFinished
in interface Pump
public void pumpFailed(java.lang.Throwable e)
pumpFailed
in interface Pump
protected void fail(java.lang.Throwable e)
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.