Interface ApplicationEventListener<E>

Type Parameters:
E - An event
All Superinterfaces:
EventListener
All Known Subinterfaces:
NettyEmbeddedServer, RefreshEventListener, RetryEventListener
All Known Implementing Classes:
AutoRegistration, CertificateProvidedSslBuilder, DefaultNettyHttpClientRegistry, FileWatchRestartListener, HeartbeatTask, NettyHttpServer, RefreshScope
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Indexed(ApplicationEventListener.class) @FunctionalInterface public interface ApplicationEventListener<E> extends EventListener
An interface for receivers of application events.
Since:
1.0
Author:
Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handle an application event.
    default boolean
    supports(E event)
    Whether the given event is supported.
  • Method Details

    • onApplicationEvent

      void onApplicationEvent(E event)
      Handle an application event.
      Parameters:
      event - the event to respond to
    • supports

      default boolean supports(E event)
      Whether the given event is supported.
      Parameters:
      event - The event
      Returns:
      True if it is