Class GrpcTransportOptions (2.3.5)

public class GrpcTransportOptions implements TransportOptions

Class representing service options for those services that use gRPC as the transport layer.

Inheritance

Object > GrpcTransportOptions

Implements

TransportOptions

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApiCallSettings(RetrySettings retrySettings)

public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings)

Returns a builder for API call settings.

Parameter
NameDescription
retrySettingsRetrySettings
Returns
TypeDescription
Builder

getExecutorFactory()

public GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService> getExecutorFactory()

Returns a scheduled executor service provider.

Returns
TypeDescription
ExecutorFactory<ScheduledExecutorService>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

newBuilder()

public static GrpcTransportOptions.Builder newBuilder()
Returns
TypeDescription
GrpcTransportOptions.Builder

setUpChannelProvider(InstantiatingGrpcChannelProvider.Builder providerBuilder, ServiceOptions<?,?> serviceOptions)

public static TransportChannelProvider setUpChannelProvider(InstantiatingGrpcChannelProvider.Builder providerBuilder, ServiceOptions<?,?> serviceOptions)

Returns a channel provider from the given default provider.

Parameters
NameDescription
providerBuilderBuilder
serviceOptionsServiceOptions<?,?>
Returns
TypeDescription
TransportChannelProvider

setUpCredentialsProvider(ServiceOptions<?,?> serviceOptions)

public static CredentialsProvider setUpCredentialsProvider(ServiceOptions<?,?> serviceOptions)
Parameter
NameDescription
serviceOptionsServiceOptions<?,?>
Returns
TypeDescription
CredentialsProvider

toBuilder()

public GrpcTransportOptions.Builder toBuilder()
Returns
TypeDescription
GrpcTransportOptions.Builder