A capacity-capped {@link Channel} implementation that supports in-memorybuffering and delivery of events.
This channel is appropriate for best effort
delivery of events where high throughput is favored over data durability. To be clear, this channel offers absolutely no guarantee of event delivery in the face of (any) component failure.
TODO: Discuss guarantees, corner cases re: potential data loss (e.g. consumer begins a tx, takes events, and gets SIGKILL before rollback).
Configuration options
Parameter | Description | Unit / Type | Default |
---|---|---|---|
capacity | The in-memory capacity of this channel. Store up to capacity events before refusing new events. | events / int | 50 |
keep-alive | The amount of time (seconds) to wait for an event before returning null on {@link #take()}. | seconds / int | 3 |
Metrics
TODO
|
|
|
|
|
|