Class NoopTransportObserver.NoopReadObserver
java.lang.Object
io.servicetalk.transport.netty.internal.NoopTransportObserver.NoopReadObserver
- All Implemented Interfaces:
ConnectionObserver.ReadObserver
- Enclosing class:
- NoopTransportObserver
public static final class NoopTransportObserver.NoopReadObserver
extends Object
implements ConnectionObserver.ReadObserver
Noop version of
ConnectionObserver.ReadObserver
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invokes when a new item is read.void
Callback when the read operation is cancelled.void
Callback when the entire read operation completes successfully.void
readFailed
(Throwable cause) Callback when the read operation fails with anerror
.void
requestedToRead
(long n) Callback when new items are requested to read.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.transport.api.ConnectionObserver.ReadObserver
itemRead
-
Field Details
-
INSTANCE
-
-
Method Details
-
requestedToRead
public void requestedToRead(long n) Description copied from interface:ConnectionObserver.ReadObserver
Callback when new items are requested to read.- Specified by:
requestedToRead
in interfaceConnectionObserver.ReadObserver
- Parameters:
n
- number of requested items to read
-
itemRead
Description copied from interface:ConnectionObserver.ReadObserver
Invokes when a new item is read.- Specified by:
itemRead
in interfaceConnectionObserver.ReadObserver
- Parameters:
item
- an item that was read
-
readFailed
Description copied from interface:ConnectionObserver.ReadObserver
Callback when the read operation fails with anerror
.- Specified by:
readFailed
in interfaceConnectionObserver.ReadObserver
- Parameters:
cause
-Throwable
that terminated the read
-
readComplete
public void readComplete()Description copied from interface:ConnectionObserver.ReadObserver
Callback when the entire read operation completes successfully.- Specified by:
readComplete
in interfaceConnectionObserver.ReadObserver
-
readCancelled
public void readCancelled()Description copied from interface:ConnectionObserver.ReadObserver
Callback when the read operation is cancelled.- Specified by:
readCancelled
in interfaceConnectionObserver.ReadObserver
-