com.google.cloud.bigtable.grpc
Class CallOptionsFactory.Default
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.CallOptionsFactory.Default
-
- All Implemented Interfaces:
- CallOptionsFactory
- Enclosing interface:
- CallOptionsFactory
public static class CallOptionsFactory.Default extends Object implements CallOptionsFactory
ReturnsCallOptions.DEFAULT
with anyContext.current()
'sContext.getDeadline()
applied to it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.bigtable.grpc.CallOptionsFactory
CallOptionsFactory.ConfiguredCallOptionsFactory, CallOptionsFactory.Default
-
-
Constructor Summary
Constructors Constructor and Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description <RequestT> io.grpc.CallOptions
create(io.grpc.MethodDescriptor<RequestT,?> descriptor, RequestT request)
Provide aCallOptions
object to be used in a single RPC.
-
-
-
Method Detail
-
create
public <RequestT> io.grpc.CallOptions create(io.grpc.MethodDescriptor<RequestT,?> descriptor, RequestT request)
Description copied from interface:CallOptionsFactory
Provide aCallOptions
object to be used in a single RPC.CallOptions
can contain state, specifically start time with an expiration is set; in cases when timeouts are used, implementations should create a new CallOptions each time this method is called.- Specified by:
create
in interfaceCallOptionsFactory
- Type Parameters:
RequestT
- a RequestT object.- Parameters:
descriptor
- The RPC that's being called. Different methods have different performance characteristics, so this parameter can be useful to craft the right timeout for the right method.request
- Some methods, specifically ReadRows, can have variability depending on the request. The request can be for either a single row, or a range. This parameter can be used to tune timeouts- Returns:
- a
CallOptions
object.
-
-