Interface ConsumerRegistry<T>
- Type Parameters:
T- the consumed type
- All Superinterfaces:
Consumer<T>, org.wildfly.clustering.function.Consumer<T>, org.wildfly.clustering.server.Registrar<org.wildfly.clustering.function.Consumer<T>>
public interface ConsumerRegistry<T>
extends org.wildfly.clustering.server.Registrar<org.wildfly.clustering.function.Consumer<T>>, org.wildfly.clustering.function.Consumer<T>
A registry of consumers.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.function.Consumer
org.wildfly.clustering.function.Consumer.ExceptionLogger<E> -
Field Summary
Fields inherited from interface org.wildfly.clustering.function.Consumer
EMPTY, EXCEPTION_LOGGER, EXCEPTION_LOGGERS -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> ConsumerRegistry<T> Creates a new consumer registry.static <T> ConsumerRegistry<T> newInstance(org.wildfly.clustering.function.Supplier<Collection<org.wildfly.clustering.function.Consumer<T>>> factory) Creates a new consumer registry.Methods inherited from interface org.wildfly.clustering.function.Consumer
andThen, compose, compose, handle, thenReturn, when, withDefault, withMonitorMethods inherited from interface org.wildfly.clustering.server.Registrar
register
-
Method Details
-
newInstance
Creates a new consumer registry.- Type Parameters:
T- the consumed type- Returns:
- a new consumer registry.
-
newInstance
static <T> ConsumerRegistry<T> newInstance(org.wildfly.clustering.function.Supplier<Collection<org.wildfly.clustering.function.Consumer<T>>> factory) Creates a new consumer registry.- Type Parameters:
T- the consumed type- Parameters:
factory- the consumer collection factory- Returns:
- a new consumer registry.
-