Class ChannelProcessingFrame<T>

  • Type Parameters:
    T - the type of messages of the Channel

    public final class ChannelProcessingFrame<T>
    extends Object
    The ProcessingContext object stores the history of the traversed Channels in form of a linked list of ChannelProcessingFrames. For each Channel one ChannelProcessingFrame is added to the end of the list.

    Each ProcessingContext stores the corresponding Channel, the Action that was executed as well as its preceding and succeeding frame. In case of the first frame in the list, the ChannelProcessingFrame.getPreviousFrame() returns null. Respective for the last frame the ChannelProcessingFrame#getNextFrame() ChannelStatistics.getNextFrame() returns null.

    See Also:
    EventMaid Documentation
    • Method Detail

      • processingFrame

        public static <T> ChannelProcessingFrame<T> processingFrame​(Channel<T> channel)
        Factory method to create a new ChannelProcessingFrame associated with the given Channel.
        Type Parameters:
        T - the type of the Channel
        Parameters:
        channel - the Channel this frame relates to
        Returns:
        a new ChannelProcessingFrame
      • copy

        public ChannelProcessingFrame<T> copy()
        Creates a exact shallow copy of the current ChannelProcessingFrame.
        Returns:
        a shallow copy of the current ChannelProcessingFrame
      • getChannel

        public Channel<T> getChannel()
      • getAction

        public Action<T> getAction()
      • setAction

        public void setAction​(Action<T> action)