Interface Handler<E>

All Known Subinterfaces:
Promise<T>, PromiseInternal<T>
All Known Implementing Classes:
PromiseImpl, VoidHandler
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 Summary

    Modifier and Type
    Method
    Description
    void
    handle(E event)
    Something has happened, so handle it.
  • Method Details

    • handle

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