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 private
ServerListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public ServerTransportListener transportCreated(ServerTransport transport)
Description copied from interface:ServerListener
Called upon the establishment of a new client connection.- Specified by:
transportCreated
in 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:ServerListener
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.- Specified by:
serverShutdown
in interfaceServerListener
-
-