Package-level declarations

Types

Link copied to clipboard
data class TlsContext(val sslContext: SslContext?, val mutualAuth: Boolean)

Holds a fully-built SslContext (or null for plaintext) along with a mutual-auth indicator.

Link copied to clipboard
data class TlsContextBuilder(val builder: SslContextBuilder, val mutualAuth: Boolean)

Wraps an SslContextBuilder together with a flag indicating whether mutual authentication is configured.

Link copied to clipboard
object TlsUtils

Factory methods for building gRPC client and server TLS contexts from certificate files.

Functions

Link copied to clipboard
fun Server.shutdownGracefully(maxWaitTime: Duration)

Gracefully shuts down this gRPC Server, waiting up to maxWaitTime for in-flight RPCs to complete.

fun Server.shutdownGracefully(timeout: Long, unit: TimeUnit)

Gracefully shuts down this gRPC Server, waiting up to the specified timeout for termination.

Link copied to clipboard
fun Server.shutdownWithJvm(maxWaitTime: Duration)

Registers a JVM shutdown hook that gracefully shuts down this gRPC Server.