Package io.grpc.internal
Class ServerImpl.ServerListenerImpl
- java.lang.Object
-
- io.grpc.internal.ServerImpl.ServerListenerImpl
-
- All Implemented Interfaces:
ServerListener
- Enclosing class:
- ServerImpl
private final class ServerImpl.ServerListenerImpl extends java.lang.Object implements ServerListener
-
-
Constructor Summary
Constructors Modifier Constructor Description privateServerListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserverShutdown()The server is shutting down.ServerTransportListenertransportCreated(ServerTransport transport)Called upon the establishment of a new client connection.
-
-
-
Method Detail
-
transportCreated
public ServerTransportListener transportCreated(ServerTransport transport)
Description copied from interface:ServerListenerCalled upon the establishment of a new client connection.- Specified by:
transportCreatedin interfaceServerListener- Parameters:
transport- the new transport to be observed.- Returns:
- a listener for stream creation events on the transport.
-
serverShutdown
public void serverShutdown()
Description copied from interface:ServerListenerThe 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.- Specified by:
serverShutdownin interfaceServerListener
-
-