public class DefaultEventConsumerRegistry<T> extends java.lang.Object implements EventConsumerRegistry<T>
| Constructor and Description |
|---|
DefaultEventConsumerRegistry()
The constructor with default circuitBreaker properties.
|
| Modifier and Type | Method and 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.
|
public DefaultEventConsumerRegistry()
public CircularEventConsumer<T> createEventConsumer(java.lang.String id, int bufferSize)
EventConsumerRegistrycreateEventConsumer in interface EventConsumerRegistry<T>id - the id of the EventConsumerbufferSize - the size of the EventConsumerpublic CircularEventConsumer<T> getEventConsumer(java.lang.String id)
EventConsumerRegistrygetEventConsumer in interface EventConsumerRegistry<T>id - the id of the EventConsumerpublic io.vavr.collection.Seq<CircularEventConsumer<T>> getAllEventConsumer()
EventConsumerRegistrygetAllEventConsumer in interface EventConsumerRegistry<T>