Interface FlushStrategy.WriteEventsListener

All Known Implementing Classes:
NoopWriteEventsListener
Enclosing interface:
FlushStrategy

public static interface FlushStrategy.WriteEventsListener
A listener of write events from the connection on which the related FlushStrategy is applied. For each FlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), following calls will be made: writeStarted() always happens-before a call to any other methods.

None of writeStarted(), itemWritten(Object) and writeTerminated() can be called concurrently with each other but writeCancelled() can be called concurrently with itemWritten(Object) or writeTerminated().