Package akka.stream.impl
Class FanIn
- java.lang.Object
-
- akka.stream.impl.FanIn
-
- All Implemented Interfaces:
Actor,ActorLogging,Pump
public class FanIn extends java.lang.Object implements Actor, ActorLogging, Pump
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFanIn.InputBunchstatic classFanIn.OnCompletestatic classFanIn.OnComplete$static classFanIn.OnErrorstatic classFanIn.OnError$static classFanIn.OnNextstatic classFanIn.OnNext$static classFanIn.OnSubscribestatic classFanIn.OnSubscribe$static classFanIn.SubInput<T>static classFanIn.SubInput$-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Constructor Summary
Constructors Constructor Description FanIn(ActorMaterializerSettings settings, int inputCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidakka$actor$Actor$_setter_$context_$eq(ActorContext x$1)protected voidakka$actor$Actor$_setter_$self_$eq(ActorRef x$1)The 'self' field holds the ActorRef for this actor.protected voidakka$stream$impl$Pump$_setter_$completedPhase_$eq(TransferPhase x$1)static intCancelled()static intCompleted()protected TransferPhasecompletedPhase()ActorContextcontext()Scala API: Stores the context for this actor, including self, and sender.static intDepleted()protected voidfail(java.lang.Throwable e)protected FanIn.InputBunchinputBunch()intinputCount()static intMarked()static intPending()voidpostRestart(java.lang.Throwable reason)User overridable callback: By default it callspreStart().voidpostStop()User overridable callback.protected OutputsprimaryOutputs()voidpumpFailed(java.lang.Throwable e)voidpumpFinished()scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>receive()Scala API: This defines the initial actor behavior, it must return a partial function with the actor logic.ActorRefself()The 'self' field holds the ActorRef for this actor.ActorMaterializerSettingssettings()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, preStart, sender, supervisorStrategy, unhandled
-
Methods inherited from interface akka.actor.ActorLogging
_log_$eq, log
-
Methods inherited from interface akka.stream.impl.Pump
currentAction_$eq, gotUpstreamSubscription, initialPhase, isPumpFinished, nextPhase, pump, transferState_$eq, waitForUpstreams
-
-
-
-
Constructor Detail
-
FanIn
public FanIn(ActorMaterializerSettings settings, int inputCount)
-
-
Method Detail
-
Marked
public static final int Marked()
-
Pending
public static final int Pending()
-
Depleted
public static final int Depleted()
-
Completed
public static final int Completed()
-
Cancelled
public static final int Cancelled()
-
completedPhase
protected final TransferPhase completedPhase()
- Specified by:
completedPhasein interfacePump
-
akka$stream$impl$Pump$_setter_$completedPhase_$eq
protected final void akka$stream$impl$Pump$_setter_$completedPhase_$eq(TransferPhase x$1)
- Specified by:
akka$stream$impl$Pump$_setter_$completedPhase_$eqin interfacePump
-
context
public ActorContext context()
Description copied from interface:ActorScala API: Stores the context for this actor, including self, and sender. It is implicit to support operations such asforward.WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContextis the Scala API.getContextreturns aAbstractActor.ActorContext, which is the Java API of the actor context.
-
self
public final ActorRef self()
Description copied from interface:ActorThe 'self' field holds the ActorRef for this actor. Can be used to send messages to itself:self ! message
-
akka$actor$Actor$_setter_$context_$eq
protected void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
- Specified by:
akka$actor$Actor$_setter_$context_$eqin interfaceActor
-
akka$actor$Actor$_setter_$self_$eq
protected final void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
Description copied from interface:ActorThe 'self' field holds the ActorRef for this actor. Can be used to send messages to itself:self ! message
- Specified by:
akka$actor$Actor$_setter_$self_$eqin interfaceActor- Parameters:
x$1- (undocumented)
-
settings
public ActorMaterializerSettings settings()
-
inputCount
public int inputCount()
-
primaryOutputs
protected Outputs primaryOutputs()
-
inputBunch
protected FanIn.InputBunch inputBunch()
-
pumpFinished
public void pumpFinished()
- Specified by:
pumpFinishedin interfacePump
-
pumpFailed
public void pumpFailed(java.lang.Throwable e)
- Specified by:
pumpFailedin interfacePump
-
fail
protected void fail(java.lang.Throwable e)
-
postStop
public void postStop()
Description copied from interface:ActorUser overridable callback. Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.
-
postRestart
public void postRestart(java.lang.Throwable reason)
Description copied from interface:ActorUser overridable callback: By default it callspreStart().- Specified by:
postRestartin interfaceActor- Parameters:
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.
-
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Description copied from interface:ActorScala API: This defines the initial actor behavior, it must return a partial function with the actor logic.
-
-