Class AsyncEventSink

java.lang.Object
com.knezevic.edaf.v3.core.events.AsyncEventSink
All Implemented Interfaces:
EventSink, AutoCloseable

public final class AsyncEventSink extends Object implements EventSink
Asynchronous wrapper around one sink with bounded queue and single worker.

The wrapper preserves event order per sink, applies backpressure when the queue is full, and guarantees flush-on-close semantics.

  • Constructor Details

    • AsyncEventSink

      public AsyncEventSink(EventSink delegate, String workerName, int queueCapacity)
      Creates async wrapper with explicit queue capacity.
  • Method Details