Class BehaviorImpl$


  • public class BehaviorImpl$
    extends java.lang.Object
    INTERNAL API
    • Field Detail

      • MODULE$

        public static final BehaviorImpl$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • BehaviorImpl$

        public BehaviorImpl$()
    • Method Detail

      • widened

        public <O,​I> Behavior<O> widened​(Behavior<I> behavior,
                                               scala.PartialFunction<O,​I> matcher)
      • intercept

        public <O,​I> Behavior<O> intercept​(BehaviorInterceptor<O,​I> interceptor,
                                                 Behavior<I> behavior)
        Intercept messages and signals for a behavior by first passing them to a BehaviorInterceptor

        When a behavior returns a new behavior as a result of processing a signal or message and that behavior already contains the same interceptor (defined by the isSame method on the BehaviorInterceptor) only the innermost interceptor is kept. This is to protect against stack overflow when recursively defining behaviors.

        Parameters:
        interceptor - (undocumented)
        behavior - (undocumented)
        Returns:
        (undocumented)