Package io.grpc.internal
Interface ServerTransportListener
-
- All Known Implementing Classes:
ServerImpl.ServerTransportListenerImpl
public interface ServerTransportListener
A observer of a server-side transport for stream creation events. Notifications must occur from the transport thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
streamCreated(ServerStream stream, java.lang.String method, Metadata headers)
Called when a new stream was created by the remote client.Attributes
transportReady(Attributes attributes)
The transport has finished all handshakes and is ready to process streams.void
transportTerminated()
The transport completed shutting down.
-
-
-
Method Detail
-
streamCreated
void streamCreated(ServerStream stream, java.lang.String method, Metadata headers)
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
Attributes transportReady(Attributes attributes)
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.
-
-