@BetaApi public class ManagedHttpJsonChannel extends Object implements HttpJsonChannel, com.google.api.gax.core.BackgroundResource
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedHttpJsonChannel.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
ManagedHttpJsonChannel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
boolean |
isShutdown() |
boolean |
isTerminated() |
static ManagedHttpJsonChannel.Builder |
newBuilder() |
<RequestT,ResponseT> |
newCall(ApiMethodDescriptor<RequestT,ResponseT> methodDescriptor,
HttpJsonCallOptions callOptions) |
void |
shutdown() |
void |
shutdownNow() |
public <RequestT,ResponseT> HttpJsonClientCall<RequestT,ResponseT> newCall(ApiMethodDescriptor<RequestT,ResponseT> methodDescriptor, HttpJsonCallOptions callOptions)
newCall in interface HttpJsonChannelpublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionpublic void close()
close in interface AutoCloseablepublic static ManagedHttpJsonChannel.Builder newBuilder()