@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1869") public static final class CallOptions.Key<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
getDefault()
Returns the user supplied default value for this key.
|
static <T> CallOptions.Key<T> |
of(String name,
T defaultValue)
Factory method for creating instances of
CallOptions.Key. |
String |
toString() |
public T getDefault()
public static <T> CallOptions.Key<T> of(String name, T defaultValue)
CallOptions.Key.T - Key typename - the name of Key.defaultValue - default value to return when value for key not set