@InternalApi(value="For internal usage only") public class ConfiguredDeadlineGeneratorFactory extends Object implements DeadlineGeneratorFactory
DeadlineGeneratorFactory
instance based on the configurations from CallOptionsConfig
.
For internal use only - public for technical reasons.
DEFAULT
Constructor and Description |
---|
ConfiguredDeadlineGeneratorFactory(CallOptionsConfig config) |
Modifier and Type | Method and Description |
---|---|
<RequestT> DeadlineGenerator |
getRequestDeadlineGenerator(RequestT request,
boolean retriable)
Returns a
DeadlineGenerator instance to use for the given RPC operation. |
public ConfiguredDeadlineGeneratorFactory(CallOptionsConfig config)
public <RequestT> DeadlineGenerator getRequestDeadlineGenerator(RequestT request, boolean retriable)
DeadlineGeneratorFactory
DeadlineGenerator
instance to use for the given RPC operation. This should
only be called once per operation and be used for the duration of the operation.getRequestDeadlineGenerator
in interface DeadlineGeneratorFactory