Package io.github.resilience4j.consumer
Interface EventConsumerRegistry<T>
- All Known Implementing Classes:
DefaultEventConsumerRegistry
public interface EventConsumerRegistry<T>
-
Method Summary
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 Details
-
createEventConsumer
Creates a new EventConsumer and stores the instance in the registry.- Parameters:
id- the id of the EventConsumerbufferSize- the size of the EventConsumer- Returns:
- a new EventConsumer
-
getEventConsumer
Returns the EventConsumer to which the specified id is mapped.- Parameters:
id- the id of the EventConsumer- Returns:
- the EventConsumer to which the specified id is mapped
-
getAllEventConsumer
io.vavr.collection.Seq<CircularEventConsumer<T>> getAllEventConsumer()Returns all EventConsumer instances.- Returns:
- all EventConsumer instances
-