public interface ServerTransport
extends io.grpc.InternalInstrumented<io.grpc.InternalChannelz.SocketStats>
| Modifier and Type | Method and Description |
|---|---|
ScheduledExecutorService |
getScheduledExecutorService()
Returns an executor for scheduling provided by the transport.
|
void |
shutdown()
Initiates an orderly shutdown of the transport.
|
void |
shutdownNow(io.grpc.Status reason)
Initiates a forceful shutdown in which preexisting and new calls are closed.
|
void shutdown()
void shutdownNow(io.grpc.Status reason)
reason.ScheduledExecutorService getScheduledExecutorService()
The executor may not be used after the transport terminates. The caller should ensure any outstanding tasks are cancelled when the transport terminates.