Package io.vertx.grpc
Class VertxChannelBuilder
- java.lang.Object
-
- io.grpc.ManagedChannelBuilder<VertxChannelBuilder>
-
- io.vertx.grpc.VertxChannelBuilder
-
public class VertxChannelBuilder extends ManagedChannelBuilder<VertxChannelBuilder>
- Author:
- Julien Viet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.grpc.ManagedChannelBuilder
ManagedChannelBuilder.InterceptorFactory
-
-
Method Summary
-
Methods inherited from class io.grpc.ManagedChannelBuilder
addMetricSink, addTransportFilter, forAddress, forTarget, interceptWithTarget
-
-
-
-
Method Detail
-
forTarget
public static VertxChannelBuilder forTarget(Vertx vertx, String target)
-
forAddress
public static VertxChannelBuilder forAddress(Vertx vertx, String host, int port)
-
forAddress
public static VertxChannelBuilder forAddress(Vertx vertx, SocketAddress address)
-
nettyBuilder
public NettyChannelBuilder nettyBuilder()
- Returns:
- the underlying
NettyChannelBuilder
-
directExecutor
public VertxChannelBuilder directExecutor()
- Specified by:
directExecutor
in classManagedChannelBuilder<VertxChannelBuilder>
-
executor
public VertxChannelBuilder executor(Executor executor)
- Specified by:
executor
in classManagedChannelBuilder<VertxChannelBuilder>
-
intercept
public VertxChannelBuilder intercept(List<ClientInterceptor> interceptors)
- Specified by:
intercept
in classManagedChannelBuilder<VertxChannelBuilder>
-
intercept
public VertxChannelBuilder intercept(ClientInterceptor... interceptors)
- Specified by:
intercept
in classManagedChannelBuilder<VertxChannelBuilder>
-
userAgent
public VertxChannelBuilder userAgent(String userAgent)
- Specified by:
userAgent
in classManagedChannelBuilder<VertxChannelBuilder>
-
overrideAuthority
public VertxChannelBuilder overrideAuthority(String authority)
- Specified by:
overrideAuthority
in classManagedChannelBuilder<VertxChannelBuilder>
-
nameResolverFactory
@Deprecated public VertxChannelBuilder nameResolverFactory(NameResolver.Factory resolverFactory)
Deprecated.- Specified by:
nameResolverFactory
in classManagedChannelBuilder<VertxChannelBuilder>
-
offloadExecutor
public VertxChannelBuilder offloadExecutor(Executor executor)
- Overrides:
offloadExecutor
in classManagedChannelBuilder<VertxChannelBuilder>
-
defaultLoadBalancingPolicy
public VertxChannelBuilder defaultLoadBalancingPolicy(String policy)
- Overrides:
defaultLoadBalancingPolicy
in classManagedChannelBuilder<VertxChannelBuilder>
-
maxInboundMetadataSize
public VertxChannelBuilder maxInboundMetadataSize(int bytes)
- Overrides:
maxInboundMetadataSize
in classManagedChannelBuilder<VertxChannelBuilder>
-
proxyDetector
public VertxChannelBuilder proxyDetector(ProxyDetector proxyDetector)
- Overrides:
proxyDetector
in classManagedChannelBuilder<VertxChannelBuilder>
-
defaultServiceConfig
public VertxChannelBuilder defaultServiceConfig(@Nullable Map<String,?> serviceConfig)
- Overrides:
defaultServiceConfig
in classManagedChannelBuilder<VertxChannelBuilder>
-
disableServiceConfigLookUp
public VertxChannelBuilder disableServiceConfigLookUp()
- Overrides:
disableServiceConfigLookUp
in classManagedChannelBuilder<VertxChannelBuilder>
-
decompressorRegistry
public VertxChannelBuilder decompressorRegistry(DecompressorRegistry registry)
- Specified by:
decompressorRegistry
in classManagedChannelBuilder<VertxChannelBuilder>
-
compressorRegistry
public VertxChannelBuilder compressorRegistry(CompressorRegistry registry)
- Specified by:
compressorRegistry
in classManagedChannelBuilder<VertxChannelBuilder>
-
idleTimeout
public VertxChannelBuilder idleTimeout(long value, TimeUnit unit)
- Specified by:
idleTimeout
in classManagedChannelBuilder<VertxChannelBuilder>
-
maxInboundMessageSize
public VertxChannelBuilder maxInboundMessageSize(int max)
- Overrides:
maxInboundMessageSize
in classManagedChannelBuilder<VertxChannelBuilder>
-
usePlaintext
public VertxChannelBuilder usePlaintext()
- Overrides:
usePlaintext
in classManagedChannelBuilder<VertxChannelBuilder>
-
useTransportSecurity
public VertxChannelBuilder useTransportSecurity()
- Overrides:
useTransportSecurity
in classManagedChannelBuilder<VertxChannelBuilder>
-
keepAliveTime
public VertxChannelBuilder keepAliveTime(long keepAliveTime, TimeUnit timeUnit)
- Overrides:
keepAliveTime
in classManagedChannelBuilder<VertxChannelBuilder>
-
keepAliveTimeout
public VertxChannelBuilder keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit)
- Overrides:
keepAliveTimeout
in classManagedChannelBuilder<VertxChannelBuilder>
-
keepAliveWithoutCalls
public VertxChannelBuilder keepAliveWithoutCalls(boolean enable)
- Overrides:
keepAliveWithoutCalls
in classManagedChannelBuilder<VertxChannelBuilder>
-
maxRetryAttempts
public VertxChannelBuilder maxRetryAttempts(int maxRetryAttempts)
- Overrides:
maxRetryAttempts
in classManagedChannelBuilder<VertxChannelBuilder>
-
maxHedgedAttempts
public VertxChannelBuilder maxHedgedAttempts(int maxHedgedAttempts)
- Overrides:
maxHedgedAttempts
in classManagedChannelBuilder<VertxChannelBuilder>
-
retryBufferSize
public VertxChannelBuilder retryBufferSize(long bytes)
- Overrides:
retryBufferSize
in classManagedChannelBuilder<VertxChannelBuilder>
-
perRpcBufferLimit
public VertxChannelBuilder perRpcBufferLimit(long bytes)
- Overrides:
perRpcBufferLimit
in classManagedChannelBuilder<VertxChannelBuilder>
-
disableRetry
public VertxChannelBuilder disableRetry()
- Overrides:
disableRetry
in classManagedChannelBuilder<VertxChannelBuilder>
-
enableRetry
public VertxChannelBuilder enableRetry()
- Overrides:
enableRetry
in classManagedChannelBuilder<VertxChannelBuilder>
-
setBinaryLog
public VertxChannelBuilder setBinaryLog(BinaryLog binaryLog)
- Overrides:
setBinaryLog
in classManagedChannelBuilder<VertxChannelBuilder>
-
maxTraceEvents
public VertxChannelBuilder maxTraceEvents(int maxTraceEvents)
- Overrides:
maxTraceEvents
in classManagedChannelBuilder<VertxChannelBuilder>
-
useSsl
public VertxChannelBuilder useSsl(Handler<ClientOptionsBase> handler)
-
build
public ManagedChannel build()
- Specified by:
build
in classManagedChannelBuilder<VertxChannelBuilder>
-
-