public interface ServerTransport extends InternalInstrumented<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(Status reason)
Initiates a forceful shutdown in which preexisting and new calls are closed.
|
getStats
getLogId
void shutdown()
void shutdownNow(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.
Copyright © 2019. All rights reserved.