Package io.grpc.internal
Interface ServerListener
-
- All Known Implementing Classes:
ServerImpl.ServerListenerImpl
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
serverShutdown()
The server is shutting down.ServerTransportListener
transportCreated(ServerTransport transport)
Called upon the establishment of a new client connection.
-
-
-
Method Detail
-
transportCreated
ServerTransportListener transportCreated(ServerTransport transport)
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.
-
-