| Modifier and Type | Method and Description |
|---|---|
OkHttpChannelBuilder |
OkHttpChannelProvider.builderForAddress(String name,
int port) |
OkHttpChannelBuilder |
OkHttpChannelProvider.builderForTarget(String target) |
OkHttpChannelBuilder |
OkHttpChannelBuilder.connectionSpec(com.squareup.okhttp.ConnectionSpec connectionSpec)
For secure connection, provides a ConnectionSpec to specify Cipher suite and
TLS versions.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.flowControlWindow(int flowControlWindow)
Sets the flow control window in bytes.
|
static OkHttpChannelBuilder |
OkHttpChannelBuilder.forAddress(String host,
int port)
Creates a new builder for the given server host and port.
|
static OkHttpChannelBuilder |
OkHttpChannelBuilder.forTarget(String target)
Creates a new builder for the given target that will be resolved by
NameResolver. |
OkHttpChannelBuilder |
OkHttpChannelBuilder.hostnameVerifier(HostnameVerifier hostnameVerifier)
Set the hostname verifier to use when using TLS negotiation.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.keepAliveTime(long keepAliveTime,
TimeUnit timeUnit) |
OkHttpChannelBuilder |
OkHttpChannelBuilder.keepAliveTimeout(long keepAliveTimeout,
TimeUnit timeUnit) |
OkHttpChannelBuilder |
OkHttpChannelBuilder.keepAliveWithoutCalls(boolean enable) |
OkHttpChannelBuilder |
OkHttpChannelBuilder.maxInboundMetadataSize(int bytes)
Sets the maximum size of metadata allowed to be received.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.negotiationType(NegotiationType type)
Deprecated.
use
usePlaintext() or useTransportSecurity() instead. |
OkHttpChannelBuilder |
OkHttpChannelBuilder.scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Provides a custom scheduled executor service.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.socketFactory(SocketFactory socketFactory)
Override the default
SocketFactory used to create sockets. |
OkHttpChannelBuilder |
OkHttpChannelBuilder.sslSocketFactory(SSLSocketFactory factory)
Override the default
SSLSocketFactory and enable TLS negotiation. |
OkHttpChannelBuilder |
OkHttpChannelBuilder.transportExecutor(Executor transportExecutor)
Override the default executor necessary for internal transport use.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.usePlaintext()
Sets the negotiation type for the HTTP/2 connection to plaintext.
|
OkHttpChannelBuilder |
OkHttpChannelBuilder.useTransportSecurity()
Sets the negotiation type for the HTTP/2 connection to TLS (this is the default).
|