Interface ConsumerRegistry<T>
- Type Parameters:
T- the consumed type
-
Nested Class Summary
Nested classes/interfaces inherited from interface Consumer
Consumer.ExceptionLogger<E> -
Field Summary
Fields inherited from interface 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(Supplier<Collection<Consumer<T>>> factory) Creates a new consumer registry.Methods inherited from interface Consumer
andThen, compose, compose, handle, thenReturn, when, withDefault, withMonitor
-
Method Details
-
newInstance
Creates a new consumer registry.- Type Parameters:
T- the consumed type- Returns:
- a new consumer registry.
-
newInstance
Creates a new consumer registry.- Type Parameters:
T- the consumed type- Parameters:
factory- the consumer collection factory- Returns:
- a new consumer registry.
-