Package io.grpc.internal
Interface ServerListener
public interface ServerListener
A listener to a server for transport creation events. The listener need not be thread-safe, so
notifications must be properly synchronized externally.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The server is shutting down.transportCreated
(ServerTransport transport) Called upon the establishment of a new client connection.
-
Method Details
-
transportCreated
Called upon the establishment of a new client connection.- Parameters:
transport
- the new transport to be observed.- Returns:
- a listener for stream creation events on the transport.
-
serverShutdown
void serverShutdown()The server is shutting down. No new transports will be processed, but existing transports may continue. Shutdown is only caused by a call toInternalServer.shutdown()
. All resources have been released.
-