Interface Event

    • Method Detail

      • getEventType

        EventType getEventType()
        Returns:
        type of the event. The event type can be defined outside of the proton library.
      • getType

        Event.Type getType()
        A concrete event type of core events.
        Returns:
        type of the event for core events. For events generated by extensions a Event.Type.NON_CORE_EVENT will be returned
      • getContext

        java.lang.Object getContext()
      • redispatch

        void redispatch​(EventType as_type,
                        Handler handler)
                 throws HandlerException
        Synchronously redispatch the current event as a new EventType on the provided handler and it's children.

        Note: the redispatch() will complete before children of the current handler have had the current event dispatched, see delegate().

        Parameters:
        as_type - Type of event to dispatch
        handler - The handler where to start the dispatch. Use getRootHandler() to redispatch the new event to all handlers in the tree.
        Throws:
        HandlerException - A wrapper exception of any unhandled exception thrown by handler
      • delegate

        void delegate()
               throws HandlerException
        dispatch the event to all children of the handler. A handler can call this method explicitly to be able to do more processing after all child handlers have already processed the event. If handler does not invoke this method it is invoked implicitly by dispatch(Handler)
        Throws:
        HandlerException
      • getLink

        Link getLink()
      • getSender

        Sender getSender()
      • getTask

        Task getTask()