Class AsyncEventSink
java.lang.Object
com.knezevic.edaf.v3.core.events.AsyncEventSink
- All Implemented Interfaces:
EventSink,AutoCloseable
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 Summary
ConstructorsConstructorDescriptionAsyncEventSink(EventSink delegate, String workerName, int queueCapacity) Creates async wrapper with explicit queue capacity. -
Method Summary
-
Constructor Details
-
AsyncEventSink
-
-
Method Details
-
onEvent
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceEventSink
-