CallOptionsFactory.ConfiguredCallOptionsFactory (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc

Class CallOptionsFactory.ConfiguredCallOptionsFactory

  • java.lang.Object
    • com.google.cloud.bigtable.grpc.CallOptionsFactory.ConfiguredCallOptionsFactory
    • Constructor Detail

      • ConfiguredCallOptionsFactory

        public ConfiguredCallOptionsFactory(CallOptionsConfig config)
    • Method Detail

      • create

        public <RequestT> io.grpc.CallOptions create(io.grpc.MethodDescriptor<RequestT,?> descriptor,
                                                     RequestT request)
        Creates a CallOptions with a focus on Deadline. Deadlines are decided in the following order:
        1. If a user set a Context deadline (see Context.getDeadline()), use that
        2. If a user configured deadlines via CallOptionsConfig, use it.
        3. Otherwise, use CallOptions.DEFAULT.
        Specified by:
        create in interface CallOptionsFactory
        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.
      • isLongRequest

        @Deprecated
        public static boolean isLongRequest(Object request)
        Deprecated. Please use getRequestTimeout(Object) to fetch long requests timeout.
        Parameters:
        request -
        Returns:
        true if this is a MutateRowsRequest or a ReadRowsRequest that's a scan.
      • isGet

        public static boolean isGet(com.google.bigtable.v2.ReadRowsRequest request)