@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4151") public final class AltsServerBuilder extends io.grpc.ForwardingServerBuilder<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) |
protected io.grpc.ServerBuilder<?> |
delegate() |
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) |
callExecutor, keepAliveTime, keepAliveTimeout, maxConnectionAge, maxConnectionAgeGrace, maxConnectionIdle, maxInboundMessageSize, maxInboundMetadataSize, permitKeepAliveTime, permitKeepAliveWithoutCalls, setBinaryLog, toString, useTransportSecurity
public static AltsServerBuilder forPort(int port)
public AltsServerBuilder enableUntrustedAltsForTesting()
public AltsServerBuilder setHandshakerAddressForTesting(String handshakerAddress)
protected io.grpc.ServerBuilder<?> delegate()
delegate
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder handshakeTimeout(long timeout, TimeUnit unit)
handshakeTimeout
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder directExecutor()
directExecutor
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder addStreamTracerFactory(io.grpc.ServerStreamTracer.Factory factory)
addStreamTracerFactory
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder addTransportFilter(io.grpc.ServerTransportFilter filter)
addTransportFilter
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder executor(Executor executor)
executor
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder addService(io.grpc.ServerServiceDefinition service)
addService
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder addService(io.grpc.BindableService bindableService)
addService
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder fallbackHandlerRegistry(io.grpc.HandlerRegistry fallbackRegistry)
fallbackHandlerRegistry
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder useTransportSecurity(File certChain, File privateKey)
useTransportSecurity
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder decompressorRegistry(io.grpc.DecompressorRegistry registry)
decompressorRegistry
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder compressorRegistry(io.grpc.CompressorRegistry registry)
compressorRegistry
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public AltsServerBuilder intercept(io.grpc.ServerInterceptor interceptor)
intercept
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>
public io.grpc.Server build()
build
in class io.grpc.ForwardingServerBuilder<AltsServerBuilder>