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>>, ListenerRegistry<T>, Registrar<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
Description copied from interface:RegistrarRegisters an object. The object is unregistered when the generatedRegistrationis closed. -
accept
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceListenerRegistry<T>
-