Class NoopTransportObserver.NoopWriteObserver
- java.lang.Object
-
- io.servicetalk.transport.netty.internal.NoopTransportObserver.NoopWriteObserver
-
- All Implemented Interfaces:
ConnectionObserver.WriteObserver
- Enclosing class:
- NoopTransportObserver
public static final class NoopTransportObserver.NoopWriteObserver extends java.lang.Object implements ConnectionObserver.WriteObserver
Noop version ofConnectionObserver.WriteObserver.
-
-
Field Summary
Fields Modifier and Type Field Description static ConnectionObserver.WriteObserverINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiditemReceived()Callback when an item is received and ready to be written.voiditemWritten()Callback when an item is written to the transport.voidonFlushRequest()Callback when flush operation is requested.voidrequestedToWrite(long n)Callback when new items are requested to write.voidwriteCancelled()Callback when the write operation is cancelled.voidwriteComplete()Callback when the entire write operation completes successfully.voidwriteFailed(java.lang.Throwable cause)Callback when the write operation fails with anerror.
-
-
-
Field Detail
-
INSTANCE
public static final ConnectionObserver.WriteObserver INSTANCE
-
-
Method Detail
-
requestedToWrite
public void requestedToWrite(long n)
Description copied from interface:ConnectionObserver.WriteObserverCallback when new items are requested to write.- Specified by:
requestedToWritein interfaceConnectionObserver.WriteObserver- Parameters:
n- number of requested items to write
-
itemReceived
public void itemReceived()
Description copied from interface:ConnectionObserver.WriteObserverCallback when an item is received and ready to be written.Content of the received items should be inspected at the higher level API when these items are produced.
- Specified by:
itemReceivedin interfaceConnectionObserver.WriteObserver
-
onFlushRequest
public void onFlushRequest()
Description copied from interface:ConnectionObserver.WriteObserverCallback when flush operation is requested.- Specified by:
onFlushRequestin interfaceConnectionObserver.WriteObserver
-
itemWritten
public void itemWritten()
Description copied from interface:ConnectionObserver.WriteObserverCallback when an item is written to the transport.Content of the written items should be inspected at the higher level API when these items are produced.
- Specified by:
itemWrittenin interfaceConnectionObserver.WriteObserver
-
writeFailed
public void writeFailed(java.lang.Throwable cause)
Description copied from interface:ConnectionObserver.WriteObserverCallback when the write operation fails with anerror.- Specified by:
writeFailedin interfaceConnectionObserver.WriteObserver- Parameters:
cause-Throwablethat terminated the write
-
writeComplete
public void writeComplete()
Description copied from interface:ConnectionObserver.WriteObserverCallback when the entire write operation completes successfully.- Specified by:
writeCompletein interfaceConnectionObserver.WriteObserver
-
writeCancelled
public void writeCancelled()
Description copied from interface:ConnectionObserver.WriteObserverCallback when the write operation is cancelled.- Specified by:
writeCancelledin interfaceConnectionObserver.WriteObserver
-
-