Package com.google.api.gax.grpc
Class GrpcTransportChannel
java.lang.Object
com.google.api.gax.grpc.GrpcTransportChannel
- All Implemented Interfaces:
BackgroundResource,TransportChannel,AutoCloseable
@InternalExtensionOnly
public abstract class GrpcTransportChannel
extends Object
implements TransportChannel
Implementation of TransportChannel based on gRPC.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) voidclose()static GrpcTransportChannelcreate(io.grpc.ManagedChannel channel) io.grpc.Channelstatic StringThe name of the Grpc transport.booleanbooleanstatic GrpcTransportChannel.Buildervoidshutdown()void
-
Constructor Details
-
GrpcTransportChannel
public GrpcTransportChannel()
-
-
Method Details
-
getGrpcTransportName
The name of the Grpc transport. -
getTransportName
- Specified by:
getTransportNamein interfaceTransportChannel
-
getEmptyCallContext
- Specified by:
getEmptyCallContextin interfaceTransportChannel
-
getChannel
public io.grpc.Channel getChannel() -
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
-