Package io.github.resilience4j.consumer
Class DefaultEventConsumerRegistry<T>
- java.lang.Object
-
- io.github.resilience4j.consumer.DefaultEventConsumerRegistry<T>
-
- All Implemented Interfaces:
EventConsumerRegistry<T>
public class DefaultEventConsumerRegistry<T> extends java.lang.Object implements EventConsumerRegistry<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultEventConsumerRegistry()The constructor with default circuitBreaker properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CircularEventConsumer<T>createEventConsumer(java.lang.String id, int bufferSize)Creates a new EventConsumer and stores the instance in the registry.io.vavr.collection.Seq<CircularEventConsumer<T>>getAllEventConsumer()Returns all EventConsumer instances.CircularEventConsumer<T>getEventConsumer(java.lang.String id)Returns the EventConsumer to which the specified id is mapped.
-
-
-
Method Detail
-
createEventConsumer
public CircularEventConsumer<T> createEventConsumer(java.lang.String id, int bufferSize)
Description copied from interface:EventConsumerRegistryCreates a new EventConsumer and stores the instance in the registry.- Specified by:
createEventConsumerin interfaceEventConsumerRegistry<T>- Parameters:
id- the id of the EventConsumerbufferSize- the size of the EventConsumer- Returns:
- a new EventConsumer
-
getEventConsumer
public CircularEventConsumer<T> getEventConsumer(java.lang.String id)
Description copied from interface:EventConsumerRegistryReturns the EventConsumer to which the specified id is mapped.- Specified by:
getEventConsumerin interfaceEventConsumerRegistry<T>- Parameters:
id- the id of the EventConsumer- Returns:
- the EventConsumer to which the specified id is mapped
-
getAllEventConsumer
public io.vavr.collection.Seq<CircularEventConsumer<T>> getAllEventConsumer()
Description copied from interface:EventConsumerRegistryReturns all EventConsumer instances.- Specified by:
getAllEventConsumerin interfaceEventConsumerRegistry<T>- Returns:
- all EventConsumer instances
-
-