Package com.google.api.gax.httpjson
Class HttpJsonTransportChannel
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonTransportChannel
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,com.google.api.gax.rpc.TransportChannel,AutoCloseable
@InternalExtensionOnly public abstract class HttpJsonTransportChannel extends Object implements com.google.api.gax.rpc.TransportChannel
Implementation of TransportChannel based on http/json.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpJsonTransportChannel.Builder
-
Constructor Summary
Constructors Constructor Description HttpJsonTransportChannel()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonTransportChannelcreate(ManagedHttpJsonChannel channel)HttpJsonChannelgetChannel()The channel in use.HttpJsonCallContextgetEmptyCallContext()static StringgetHttpJsonTransportName()The name of the Http-JSON transport.abstract ManagedHttpJsonChannelgetManagedChannel()The channel in use.StringgetTransportName()booleanisShutdown()booleanisTerminated()static HttpJsonTransportChannel.BuildernewBuilder()voidshutdown()voidshutdownNow()
-
-
-
Method Detail
-
getHttpJsonTransportName
public static String getHttpJsonTransportName()
The name of the Http-JSON transport.
-
getTransportName
public String getTransportName()
- Specified by:
getTransportNamein interfacecom.google.api.gax.rpc.TransportChannel
-
getEmptyCallContext
public HttpJsonCallContext getEmptyCallContext()
- Specified by:
getEmptyCallContextin interfacecom.google.api.gax.rpc.TransportChannel
-
getManagedChannel
public abstract ManagedHttpJsonChannel getManagedChannel()
The channel in use.
-
getChannel
public HttpJsonChannel getChannel()
The channel in use.
-
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 HttpJsonTransportChannel.Builder newBuilder()
-
create
public static HttpJsonTransportChannel create(ManagedHttpJsonChannel channel)
-
-