Package io.servicetalk.transport.api
Interface ConnectionObserver.DataObserver
- All Known Implementing Classes:
NoopTransportObserver.NoopDataObserver
- Enclosing interface:
- ConnectionObserver
public static interface ConnectionObserver.DataObserver
An observer interface that provides visibility into read and write events related to data flow.
-
Method Summary
Modifier and TypeMethodDescriptionCallback when the connection starts reading a new message.Callback when the connection starts writing a new message.
-
Method Details
-
onNewRead
ConnectionObserver.ReadObserver onNewRead()Callback when the connection starts reading a new message.- Returns:
ConnectionObserver.ReadObserver
that provides visibility into read events
-
onNewWrite
ConnectionObserver.WriteObserver onNewWrite()Callback when the connection starts writing a new message.- Returns:
ConnectionObserver.WriteObserver
that provides visibility into write events
-