Class ReturnActionHandler<T>

  • Type Parameters:
    T - the type of messages of the Channel
    All Implemented Interfaces:
    ActionHandler<Return<T>,​T>

    public final class ReturnActionHandler<T>
    extends Object
    implements ActionHandler<Return<T>,​T>
    The ActionHandler implementation for the Return Action. This handler will go back through the ChannelProcessingFrame history to obtain the last Call Action, that was not yet matched with an Return Action. If found, it will link those two and will return back to the point the Call was executed. If no not yet consumed Call was found, a ReturnWithoutCallException is thrown.
    See Also:
    EventMaid Documentation
    • Constructor Detail

      • ReturnActionHandler

        public ReturnActionHandler()
    • Method Detail

      • returnActionHandler

        public static <T> ReturnActionHandler<T> returnActionHandler()
        Factory method for a new ReturnActionHandler.
        Type Parameters:
        T - the type of messages of the Channel
        Returns:
        a new ReturnActionHandler