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

Class CallOptionsFactory.ConfiguredCallOptionsFactory

  • java.lang.Object
    • Constructor Detail

      • ConfiguredCallOptionsFactory

        public ConfiguredCallOptionsFactory(CallOptionsConfig config)
    • Method Detail

      • create

        public <RequestT> io.grpc.CallOptions create(io.grpc.MethodDescriptor<RequestT,?> descriptor,
                                                     RequestT request)
        Description copied from interface: CallOptionsFactory
        Provide a CallOptions 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 interface CallOptionsFactory
        Type Parameters:
        RequestT - a RequestT object.
        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
        a CallOptions object.
      • isLongRequest

        public static boolean isLongRequest(Object request)
        request -
        true if this is a MutateRowsRequest or a ReadRowsRequest that's a scan.
      • isGet

        public static boolean isGet( request)

Var denne side nyttig? Giv os en anmeldelse af den:

Send feedback om...

Cloud Bigtable Documentation