Package io.github.resilience4j.consumer
Interface EventConsumerRegistry<T>
-
- All Known Implementing Classes:
DefaultEventConsumerRegistry
public interface EventConsumerRegistry<T>
-
-
Method Summary
All Methods Instance Methods Abstract 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
CircularEventConsumer<T> createEventConsumer(java.lang.String id, int bufferSize)
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
@Nullable CircularEventConsumer<T> getEventConsumer(java.lang.String id)
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
-
-