Package io.vertx.core

Interface Handler<E>

  • All Known Subinterfaces:
    JsonParser, RecordParser
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Handler<E>
    A generic event handler.

    This interface is used heavily throughout Vert.x as a handler for all types of asynchronous occurrences.

    Author:
    Tim Fox
    • Method Detail

      • handle

        void handle​(E event)
        Something has happened, so handle it.
        Parameters:
        event - the event to handle