Package io.grpc.internal
Interface ServerTransportListener
public interface ServerTransportListener
A observer of a server-side transport for stream creation events. Notifications must occur from
the transport thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
streamCreated
(ServerStream stream, String method, Metadata headers) Called when a new stream was created by the remote client.transportReady
(Attributes attributes) The transport has finished all handshakes and is ready to process streams.void
The transport completed shutting down.
-
Method Details
-
streamCreated
Called when a new stream was created by the remote client.- Parameters:
stream
- the newly created stream.method
- the fully qualified method name being called on the server.headers
- containing metadata for the call.
-
transportReady
The transport has finished all handshakes and is ready to process streams.- Parameters:
attributes
- transport attributes- Returns:
- the effective transport attributes that is used as the basis of call attributes
-
transportTerminated
void transportTerminated()The transport completed shutting down. All resources have been released.
-