Class LocalListenerRegistry<T>
java.lang.Object
org.wildfly.clustering.server.local.listener.LocalListenerRegistry<T>
- Type Parameters:
T- the listener type
- All Implemented Interfaces:
AutoCloseable, Consumer<Consumer<T>>, org.wildfly.clustering.server.listener.ListenerRegistry<T>, org.wildfly.clustering.server.Registrar<T>
public class LocalListenerRegistry<T>
extends Object
implements org.wildfly.clustering.server.listener.ListenerRegistry<T>
Local
ListenerRegistry.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionLocalListenerRegistry(Duration shutdownTimeout) Creates a local listener registrar with the specified shutdown timeout. -
Method Summary
-
Constructor Details
-
LocalListenerRegistry
Creates a local listener registrar with the specified shutdown timeout.- Parameters:
shutdownTimeout- the duration of time to wait for termination of listener tasks on close.
-
-
Method Details
-
register
-
accept
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.listener.ListenerRegistry<T>
-