Package com.google.api.gax.httpjson
Class ManagedHttpJsonChannel
- java.lang.Object
-
- com.google.api.gax.httpjson.ManagedHttpJsonChannel
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,HttpJsonChannel,AutoCloseable
@BetaApi public class ManagedHttpJsonChannel extends Object implements HttpJsonChannel, com.google.api.gax.core.BackgroundResource
Implementation of HttpJsonChannel which can issue http-json calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagedHttpJsonChannel.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagedHttpJsonChannel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()booleanisShutdown()booleanisTerminated()static ManagedHttpJsonChannel.BuildernewBuilder()<RequestT,ResponseT>
HttpJsonClientCall<RequestT,ResponseT>newCall(ApiMethodDescriptor<RequestT,ResponseT> methodDescriptor, HttpJsonCallOptions callOptions)voidshutdown()voidshutdownNow()
-
-
-
Method Detail
-
newCall
public <RequestT,ResponseT> HttpJsonClientCall<RequestT,ResponseT> newCall(ApiMethodDescriptor<RequestT,ResponseT> methodDescriptor, HttpJsonCallOptions callOptions)
- Specified by:
newCallin interfaceHttpJsonChannel
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminatedin interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()
- Specified by:
shutdownNowin interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Specified by:
awaitTerminationin interfacecom.google.api.gax.core.BackgroundResource- Throws:
InterruptedException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
newBuilder
public static ManagedHttpJsonChannel.Builder newBuilder()
-
-