@InternalExtensionOnly public abstract class GrpcTransportChannel extends Object implements com.google.api.gax.rpc.TransportChannel
| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcTransportChannel.Builder |
| Constructor and Description |
|---|
GrpcTransportChannel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcTransportChannel |
create(io.grpc.ManagedChannel channel) |
io.grpc.Channel |
getChannel() |
GrpcCallContext |
getEmptyCallContext() |
static String |
getGrpcTransportName()
The name of the Grpc transport.
|
String |
getTransportName() |
boolean |
isShutdown() |
boolean |
isTerminated() |
static GrpcTransportChannel.Builder |
newBuilder() |
void |
shutdown() |
void |
shutdownNow() |
public static String getGrpcTransportName()
public String getTransportName()
getTransportName in interface com.google.api.gax.rpc.TransportChannelpublic GrpcCallContext getEmptyCallContext()
getEmptyCallContext in interface com.google.api.gax.rpc.TransportChannelpublic io.grpc.Channel getChannel()
public 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 GrpcTransportChannel.Builder newBuilder()
public static GrpcTransportChannel create(io.grpc.ManagedChannel channel)