Class PoolRouterImpl<T>
java.lang.Object
org.apache.pekko.actor.typed.Behavior<T>
org.apache.pekko.actor.typed.ExtensibleBehavior<T>
org.apache.pekko.actor.typed.scaladsl.AbstractBehavior<T>
org.apache.pekko.actor.typed.internal.routing.PoolRouterImpl<T>
INTERNAL API
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.typed.Behavior
Behavior.BehaviorDecorators<Inner>, Behavior.BehaviorDecorators$ -
Constructor Summary
ConstructorsConstructorDescriptionPoolRouterImpl(ActorContext<T> ctx, int poolSize, Behavior<T> behavior, RoutingLogic<T> logic, scala.Function1<T, Object> broadcastPredicate, Props routeeProps) -
Method Summary
Modifier and TypeMethodDescriptionImplement this method to process an incoming message and return the next behavior.onSignal()Override this method to process an incomingpekko.actor.typed.Signaland return the next behavior.Methods inherited from class org.apache.pekko.actor.typed.scaladsl.AbstractBehavior
context, receive, receiveSignalMethods inherited from class org.apache.pekko.actor.typed.Behavior
BehaviorDecorators, canonicalize, existsInStack, interpretMessage, interpretSignal, isAlive, isDeferred, isUnhandled, narrow, start, validateAsInitial
-
Constructor Details
-
PoolRouterImpl
public PoolRouterImpl(ActorContext<T> ctx, int poolSize, Behavior<T> behavior, RoutingLogic<T> logic, scala.Function1<T, Object> broadcastPredicate, Props routeeProps)
-
-
Method Details
-
onMessage
Description copied from class:AbstractBehaviorImplement this method to process an incoming message and return the next behavior.The returned behavior can in addition to normal behaviors be one of the canned special objects:
- returning
stoppedwill terminate this Behavior - returning
thisorsamedesignates to reuse the current Behavior - returning
unhandledkeeps the same Behavior and signals that the message was not yet handled
- Specified by:
onMessagein classAbstractBehavior<T>
- returning
-
onSignal
Description copied from class:AbstractBehaviorOverride this method to process an incomingpekko.actor.typed.Signaland return the next behavior. This means that all lifecycle hooks, ReceiveTimeout, Terminated and Failed messages can initiate a behavior change.The returned behavior can in addition to normal behaviors be one of the canned special objects:
* returning
stoppedwill terminate this Behavior * returningthisorsamedesignates to reuse the current Behavior * returningunhandledkeeps the same Behavior and signals that the message was not yet handledBy default, partial function is empty and does not handle any signals.
- Overrides:
onSignalin classAbstractBehavior<T>
-