Package com.google.api.gax.httpjson
Class ManagedHttpJsonChannel
java.lang.Object
com.google.api.gax.httpjson.ManagedHttpJsonChannel
- All Implemented Interfaces:
BackgroundResource,HttpJsonChannel,AutoCloseable
Implementation of HttpJsonChannel which can issue http-json calls.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) voidclose()booleanboolean<RequestT,ResponseT>
HttpJsonClientCall<RequestT,ResponseT> newCall(ApiMethodDescriptor<RequestT, ResponseT> methodDescriptor, HttpJsonCallOptions callOptions) voidshutdown()void
-
Constructor Details
-
ManagedHttpJsonChannel
protected ManagedHttpJsonChannel()
-
-
Method Details
-
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 interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
-