@BetaApi public final class HttpJsonCallContext extends Object implements com.google.api.gax.rpc.ApiCallContext
HttpJsonCallContext is immutable in the sense that none of its methods modifies the
HttpJsonCallContext itself or the underlying data. Methods of the form withX return
copies of the object, but with one field changed. The immutability and thread safety of the
arguments solely depends on the arguments themselves.
| Modifier and Type | Method and Description |
|---|---|
static HttpJsonCallContext |
createDefault()
Returns an empty instance.
|
boolean |
equals(Object o) |
HttpJsonCallOptions |
getCallOptions() |
HttpJsonChannel |
getChannel() |
com.google.auth.Credentials |
getCredentials()
Deprecated.
|
org.threeten.bp.Instant |
getDeadline()
Deprecated.
|
Map<String,List<String>> |
getExtraHeaders() |
<T> T |
getOption(com.google.api.gax.rpc.ApiCallContext.Key<T> key) |
Set<com.google.api.gax.rpc.StatusCode.Code> |
getRetryableCodes() |
com.google.api.gax.retrying.RetrySettings |
getRetrySettings() |
org.threeten.bp.Duration |
getStreamIdleTimeout()
The stream idle timeout set for this context.
|
org.threeten.bp.Duration |
getStreamWaitTimeout()
The stream wait timeout set for this context.
|
org.threeten.bp.Duration |
getTimeout() |
com.google.api.gax.tracing.ApiTracer |
getTracer() |
int |
hashCode() |
HttpJsonCallContext |
merge(com.google.api.gax.rpc.ApiCallContext inputCallContext) |
HttpJsonCallContext |
nullToSelf(com.google.api.gax.rpc.ApiCallContext inputContext)
Returns inputContext cast to
HttpJsonCallContext, or an empty HttpJsonCallContext if inputContext is null. |
static HttpJsonCallContext |
of(HttpJsonChannel channel,
HttpJsonCallOptions options) |
HttpJsonCallContext |
withCallOptions(HttpJsonCallOptions newCallOptions) |
HttpJsonCallContext |
withChannel(HttpJsonChannel newChannel) |
HttpJsonCallContext |
withCredentials(com.google.auth.Credentials newCredentials) |
HttpJsonCallContext |
withDeadline(org.threeten.bp.Instant newDeadline)
Deprecated.
|
com.google.api.gax.rpc.ApiCallContext |
withExtraHeaders(Map<String,List<String>> extraHeaders) |
<T> com.google.api.gax.rpc.ApiCallContext |
withOption(com.google.api.gax.rpc.ApiCallContext.Key<T> key,
T value) |
HttpJsonCallContext |
withRetryableCodes(Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes) |
HttpJsonCallContext |
withRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings) |
HttpJsonCallContext |
withStreamIdleTimeout(org.threeten.bp.Duration streamIdleTimeout) |
HttpJsonCallContext |
withStreamWaitTimeout(org.threeten.bp.Duration streamWaitTimeout) |
HttpJsonCallContext |
withTimeout(org.threeten.bp.Duration timeout) |
HttpJsonCallContext |
withTracer(com.google.api.gax.tracing.ApiTracer newTracer) |
HttpJsonCallContext |
withTransportChannel(com.google.api.gax.rpc.TransportChannel inputChannel) |
public static HttpJsonCallContext createDefault()
public static HttpJsonCallContext of(HttpJsonChannel channel, HttpJsonCallOptions options)
public HttpJsonCallContext nullToSelf(com.google.api.gax.rpc.ApiCallContext inputContext)
HttpJsonCallContext, or an empty HttpJsonCallContext if inputContext is null.nullToSelf in interface com.google.api.gax.rpc.ApiCallContextinputContext - the ApiCallContext to cast if it is not nullpublic HttpJsonCallContext merge(com.google.api.gax.rpc.ApiCallContext inputCallContext)
merge in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withCredentials(com.google.auth.Credentials newCredentials)
withCredentials in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withTransportChannel(com.google.api.gax.rpc.TransportChannel inputChannel)
withTransportChannel in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withTimeout(org.threeten.bp.Duration timeout)
withTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getTimeout()
getTimeout in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withStreamWaitTimeout(@Nullable org.threeten.bp.Duration streamWaitTimeout)
withStreamWaitTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getStreamWaitTimeout()
getStreamWaitTimeout in interface com.google.api.gax.rpc.ApiCallContextApiCallContext.withStreamWaitTimeout(Duration)public HttpJsonCallContext withStreamIdleTimeout(@Nullable org.threeten.bp.Duration streamIdleTimeout)
withStreamIdleTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getStreamIdleTimeout()
getStreamIdleTimeout in interface com.google.api.gax.rpc.ApiCallContextApiCallContext.withStreamIdleTimeout(Duration)@BetaApi(value="The surface for extra headers is not stable yet and may change in the future.") public com.google.api.gax.rpc.ApiCallContext withExtraHeaders(Map<String,List<String>> extraHeaders)
withExtraHeaders in interface com.google.api.gax.rpc.ApiCallContext@BetaApi(value="The surface for extra headers is not stable yet and may change in the future.") public Map<String,List<String>> getExtraHeaders()
getExtraHeaders in interface com.google.api.gax.rpc.ApiCallContextpublic <T> com.google.api.gax.rpc.ApiCallContext withOption(com.google.api.gax.rpc.ApiCallContext.Key<T> key,
T value)
withOption in interface com.google.api.gax.rpc.ApiCallContextpublic <T> T getOption(com.google.api.gax.rpc.ApiCallContext.Key<T> key)
getOption in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonChannel getChannel()
public HttpJsonCallOptions getCallOptions()
@Deprecated @Nullable public org.threeten.bp.Instant getDeadline()
@Deprecated @Nullable public com.google.auth.Credentials getCredentials()
public com.google.api.gax.retrying.RetrySettings getRetrySettings()
getRetrySettings in interface com.google.api.gax.retrying.RetryingContextpublic HttpJsonCallContext withRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings)
withRetrySettings in interface com.google.api.gax.rpc.ApiCallContextpublic Set<com.google.api.gax.rpc.StatusCode.Code> getRetryableCodes()
getRetryableCodes in interface com.google.api.gax.retrying.RetryingContextpublic HttpJsonCallContext withRetryableCodes(Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
withRetryableCodes in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withChannel(HttpJsonChannel newChannel)
public HttpJsonCallContext withCallOptions(HttpJsonCallOptions newCallOptions)
@Deprecated public HttpJsonCallContext withDeadline(org.threeten.bp.Instant newDeadline)
@Nonnull public com.google.api.gax.tracing.ApiTracer getTracer()
getTracer in interface com.google.api.gax.retrying.RetryingContextgetTracer in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withTracer(@Nonnull com.google.api.gax.tracing.ApiTracer newTracer)
withTracer in interface com.google.api.gax.rpc.ApiCallContext