Class BehaviorSignalInterceptor<Inner>

  • Type Parameters:
    Inner - The inner message type - the type of message the wrapped behavior accepts


    public abstract class BehaviorSignalInterceptor<Inner>
    extends BehaviorInterceptor<Inner,​Inner>
    A behavior interceptor allows for intercepting signals reception and perform arbitrary logic - transform, filter, send to a side channel etc.

    The BehaviorSignalInterceptor API is considered a low level tool for building other features and shouldn't be used for "normal" application logic. Several built-in intercepting behaviors are provided through factories in the respective Behaviors.

    If the interceptor does keep mutable state care must be taken to create a new instance from the factory function of Behaviors.intercept so that a new instance is created per spawned actor rather than shared among actor instance.

    See Also:
    BehaviorInterceptor