public abstract class NoopWriteEventsListener extends java.lang.Object implements FlushStrategy.WriteEventsListener
FlushStrategy.WriteEventsListener that by default does nothing for all method. This can be used to selectively implement
relevant methods.| Constructor and Description |
|---|
NoopWriteEventsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
itemWritten(java.lang.Object __)
For each new
FlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called once after any item is written to the connection. |
void |
writeCancelled()
For each new
FlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once when writes are cancelled. |
void |
writeStarted()
For each new
FlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once before any items are written to the connection. |
void |
writeTerminated()
For each new
FlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once when all other items are written to the connection. |
public void writeStarted()
FlushStrategy.WriteEventsListenerFlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once before any items are written to the connection.
This will be followed by zero or more calls to FlushStrategy.WriteEventsListener.itemWritten(Object) and at most one call to
FlushStrategy.WriteEventsListener.writeTerminated() and FlushStrategy.WriteEventsListener.writeCancelled() or both.
writeStarted in interface FlushStrategy.WriteEventsListenerpublic void itemWritten(java.lang.Object __)
FlushStrategy.WriteEventsListenerFlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called once after any item is written to the connection.
This will be followed by zero or more calls to this method and at most one call to FlushStrategy.WriteEventsListener.writeTerminated()
and FlushStrategy.WriteEventsListener.writeCancelled() or both.
FlushStrategy.WriteEventsListener.writeCancelled() can be called concurrently with this method.
itemWritten in interface FlushStrategy.WriteEventsListener__ - Item that was written.public void writeTerminated()
FlushStrategy.WriteEventsListenerFlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once when all other items are written to the connection.
FlushStrategy.WriteEventsListener.writeCancelled() MAY be called concurrently or after this method.
writeTerminated in interface FlushStrategy.WriteEventsListenerpublic void writeCancelled()
FlushStrategy.WriteEventsListenerFlushStrategy.WriteEventsListener returned from FlushStrategy.apply(FlushSender), this method
will be called at most once when writes are cancelled.
FlushStrategy.WriteEventsListener.itemWritten(Object) or FlushStrategy.WriteEventsListener.writeTerminated() MAY be called concurrently or after this
method.
writeCancelled in interface FlushStrategy.WriteEventsListener