Class LocalListenerRegistrar<T>

java.lang.Object
org.wildfly.clustering.server.local.listener.LocalListenerRegistrar<T>
Type Parameters:
T - the listener type
All Implemented Interfaces:
AutoCloseable, Consumer<Consumer<T>>, ListenerRegistrar<T>, org.wildfly.clustering.server.Registrar<T>, org.wildfly.clustering.server.Registration

public class LocalListenerRegistrar<T> extends Object implements ListenerRegistrar<T>
Author:
Paul Ferraro
  • Constructor Details

    • LocalListenerRegistrar

      public LocalListenerRegistrar(Duration shutdownTimeout)
  • Method Details

    • register

      public org.wildfly.clustering.server.Registration register(T listener)
      Specified by:
      register in interface org.wildfly.clustering.server.Registrar<T>
    • accept

      public void accept(Consumer<T> event)
      Specified by:
      accept in interface Consumer<T>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.Registration