Package com.google.api.gax.httpjson
Class HttpJsonTransportChannel
java.lang.Object
com.google.api.gax.httpjson.HttpJsonTransportChannel
- All Implemented Interfaces:
BackgroundResource,TransportChannel,AutoCloseable
@InternalExtensionOnly
public abstract class HttpJsonTransportChannel
extends Object
implements TransportChannel
Implementation of TransportChannel based on http/json.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) voidclose()static HttpJsonTransportChannelcreate(ManagedHttpJsonChannel channel) The channel in use.static StringThe name of the Http-JSON transport.abstract ManagedHttpJsonChannelThe channel in use.booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonTransportChannel
public HttpJsonTransportChannel()
-
-
Method Details
-
getHttpJsonTransportName
The name of the Http-JSON transport. -
getTransportName
- Specified by:
getTransportNamein interfaceTransportChannel
-
getEmptyCallContext
- Specified by:
getEmptyCallContextin interfaceTransportChannel
-
getManagedChannel
The channel in use. -
getChannel
The channel in use. -
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
-
create
-