Package io.github.resilience4j.consumer
Interface EventConsumerRegistry<T>
- All Known Implementing Classes:
DefaultEventConsumerRegistry
public interface EventConsumerRegistry<T>
-
Method Summary
Modifier and TypeMethodDescriptioncreateEventConsumer(String id, int bufferSize) Creates a new EventConsumer and stores the instance in the registry.Returns all EventConsumer instances.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
List<CircularEventConsumer<T>> getAllEventConsumer()Returns all EventConsumer instances.- Returns:
- all EventConsumer instances
-