Interface Handler

    • Method Detail

      • handlerAdded

        void handlerAdded​(HandlerContext ctx)
        Gets called after the Handler was added to the actual context and it's ready to handle events.
      • handlerRemoved

        void handlerRemoved​(HandlerContext ctx)
        Gets called after the Handler was removed from the actual context and it doesn't handle events anymore.
      • eventTriggered

        void eventTriggered​(HandlerContext ctx,
                            Event event,
                            CompletableFuture<Void> future)
        Gets called if a Event was emitted.
        Parameters:
        ctx - handler context
        event - the event
        future - a future for the message
      • write

        void write​(HandlerContext ctx,
                   Address recipient,
                   Object msg,
                   CompletableFuture<Void> future)
        Gets called if a Object was send from the application to a recipient.
        Parameters:
        ctx - handler context
        recipient - the recipient of the message
        msg - the message
        future - a future for the message