@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4151") public final class AltsServerBuilder extends io.grpc.ServerBuilder<AltsServerBuilder>
Modifier and Type | Method and Description |
---|---|
AltsServerBuilder |
addService(io.grpc.BindableService bindableService) |
AltsServerBuilder |
addService(io.grpc.ServerServiceDefinition service) |
AltsServerBuilder |
addStreamTracerFactory(io.grpc.ServerStreamTracer.Factory factory) |
AltsServerBuilder |
addTransportFilter(io.grpc.ServerTransportFilter filter) |
io.grpc.Server |
build() |
AltsServerBuilder |
compressorRegistry(io.grpc.CompressorRegistry registry) |
AltsServerBuilder |
decompressorRegistry(io.grpc.DecompressorRegistry registry) |
AltsServerBuilder |
directExecutor() |
AltsServerBuilder |
enableUntrustedAltsForTesting()
Enables untrusted ALTS for testing.
|
AltsServerBuilder |
executor(Executor executor) |
AltsServerBuilder |
fallbackHandlerRegistry(io.grpc.HandlerRegistry fallbackRegistry) |
static AltsServerBuilder |
forPort(int port)
Creates a gRPC server builder for the given port.
|
AltsServerBuilder |
handshakeTimeout(long timeout,
TimeUnit unit) |
AltsServerBuilder |
intercept(io.grpc.ServerInterceptor interceptor) |
AltsServerBuilder |
setHandshakerAddressForTesting(String handshakerAddress)
Sets a new handshaker service address for testing.
|
AltsServerBuilder |
useTransportSecurity(File certChain,
File privateKey) |
public static AltsServerBuilder forPort(int port)
public AltsServerBuilder enableUntrustedAltsForTesting()
public AltsServerBuilder setHandshakerAddressForTesting(String handshakerAddress)
public AltsServerBuilder handshakeTimeout(long timeout, TimeUnit unit)
handshakeTimeout
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder directExecutor()
directExecutor
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder addStreamTracerFactory(io.grpc.ServerStreamTracer.Factory factory)
addStreamTracerFactory
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder addTransportFilter(io.grpc.ServerTransportFilter filter)
addTransportFilter
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder executor(Executor executor)
executor
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder addService(io.grpc.ServerServiceDefinition service)
addService
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder addService(io.grpc.BindableService bindableService)
addService
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder fallbackHandlerRegistry(io.grpc.HandlerRegistry fallbackRegistry)
fallbackHandlerRegistry
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder useTransportSecurity(File certChain, File privateKey)
useTransportSecurity
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder decompressorRegistry(io.grpc.DecompressorRegistry registry)
decompressorRegistry
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder compressorRegistry(io.grpc.CompressorRegistry registry)
compressorRegistry
in class io.grpc.ServerBuilder<AltsServerBuilder>
public AltsServerBuilder intercept(io.grpc.ServerInterceptor interceptor)
intercept
in class io.grpc.ServerBuilder<AltsServerBuilder>
public io.grpc.Server build()
build
in class io.grpc.ServerBuilder<AltsServerBuilder>