Package io.github.resilience4j.consumer
Class DefaultEventConsumerRegistry<T>
java.lang.Object
io.github.resilience4j.consumer.DefaultEventConsumerRegistry<T>
- All Implemented Interfaces:
EventConsumerRegistry<T>
-
Constructor Summary
ConstructorsConstructorDescriptionThe constructor with default circuitBreaker properties. -
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.remove a EventConsumer in the registry.
-
Constructor Details
-
DefaultEventConsumerRegistry
public DefaultEventConsumerRegistry()The constructor with default circuitBreaker properties.
-
-
Method Details
-
createEventConsumer
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
-
removeEventConsumer
Description copied from interface:EventConsumerRegistryremove a EventConsumer in the registry.- Specified by:
removeEventConsumerin interfaceEventConsumerRegistry<T>- Parameters:
id- the id of the EventConsumer- Returns:
- the removed EventConsumer
-
getEventConsumer
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
Description copied from interface:EventConsumerRegistryReturns all EventConsumer instances.- Specified by:
getAllEventConsumerin interfaceEventConsumerRegistry<T>- Returns:
- all EventConsumer instances
-