public class CircularEventConsumer<T>
extends java.lang.Object
implements io.github.resilience4j.core.EventConsumer<T>
| Constructor and Description |
|---|
CircularEventConsumer(int capacity)
Creates an
CircuitBreakerEventConsumer with the given (fixed)
capacity |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeEvent(T event) |
io.vavr.collection.List<T> |
getBufferedEvents()
Returns a list containing all of the buffered events.
|
public CircularEventConsumer(int capacity)
CircuitBreakerEventConsumer with the given (fixed)
capacitycapacity - the capacity of this CircuitBreakerEventConsumerjava.lang.IllegalArgumentException - if capacity < 1public void consumeEvent(T event)
consumeEvent in interface io.github.resilience4j.core.EventConsumer<T>public io.vavr.collection.List<T> getBufferedEvents()