Modifier and Type | Method | Description |
---|---|---|
static <T> CallOptions.Key<T> |
CallOptions.Key.create(java.lang.String debugString) |
Factory method for creating instances of
CallOptions.Key . |
static <T> CallOptions.Key<T> |
CallOptions.Key.createWithDefault(java.lang.String debugString,
T defaultValue) |
Factory method for creating instances of
CallOptions.Key . |
static <T> CallOptions.Key<T> |
CallOptions.Key.of(java.lang.String debugString,
T defaultValue) |
Deprecated.
Use
create(java.lang.String) or createWithDefault(java.lang.String, T) instead. |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
CallOptions.getOption(CallOptions.Key<T> key) |
Get the value for a custom option or its inherent default.
|
<T> CallOptions |
CallOptions.withOption(CallOptions.Key<T> key,
T value) |
Sets a custom option.
|