Package com.google.cloud.grpc (1.11.0)

GitHub Repository

Classes

Class Description
com.google.cloud.grpc.GcpClientCall A wrapper of ClientCall that can fetch the affinitykey from the request/response message.

It stores the information such as method, calloptions, the ChannelRef which created it, etc to facilitate creating new calls. It gets the affinitykey from the request/response message, and

com.google.cloud.grpc.GcpClientCall.SimpleGcpClientCall A simple wrapper of ClientCall.

It defines the callback function to manage the number of active streams of a ChannelRef everytime a call is started/closed.

com.google.cloud.grpc.GcpManagedChannel A channel management factory that implements grpc.Channel APIs.
com.google.cloud.grpc.GcpManagedChannel.ChannelAffinityRef Opaque sticky channel reference for callers that should not depend on ChannelRef.
com.google.cloud.grpc.GcpManagedChannel.ChannelRef A wrapper of real grpc channel, it provides helper functions to calculate affinity counts and active streams count.
com.google.cloud.grpc.GcpManagedChannelBuilder
com.google.cloud.grpc.GcpManagedChannelOptions Options for the GcpManagedChannel.
com.google.cloud.grpc.GcpManagedChannelOptions.Builder
com.google.cloud.grpc.GcpManagedChannelOptions.GcpChannelPoolOptions Channel pool configuration for the GCP managed channel.
com.google.cloud.grpc.GcpManagedChannelOptions.GcpChannelPoolOptions.Builder
com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions Metrics configuration for the GCP managed channel.
com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions.Builder
com.google.cloud.grpc.GcpManagedChannelOptions.GcpResiliencyOptions Resiliency configuration for the GCP managed channel.
com.google.cloud.grpc.GcpManagedChannelOptions.GcpResiliencyOptions.Builder
com.google.cloud.grpc.GcpMultiEndpointChannel The purpose of GcpMultiEndpointChannel is twofold:
  1. Fallback to an alternative endpoint (host:port) of a gRPC service when the original
com.google.cloud.grpc.GcpMultiEndpointOptions MultiEndpoint configuration for the GcpMultiEndpointChannel.
com.google.cloud.grpc.GcpMultiEndpointOptions.Builder
com.google.cloud.grpc.GcpThreadFactory Thread factory helper for grpc-gcp background executors.

Enums

Enum Description
com.google.cloud.grpc.GcpManagedChannelOptions.ChannelPickStrategy Strategy for picking the least busy channel from the pool.

This controls how a channel is selected when there is no affinity key or when a new affinity binding is being established.