Package com.google.cloud.grpc
Class GrpcTransportOptions.DefaultExecutorFactory
java.lang.Object
com.google.cloud.grpc.GrpcTransportOptions.DefaultExecutorFactory
- All Implemented Interfaces:
GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
- Enclosing class:
- GrpcTransportOptions
@InternalApi
public static class GrpcTransportOptions.DefaultExecutorFactory
extends Object
implements GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets an executor service instance.voidrelease(ScheduledExecutorService executor) Releases resources used by the executor and possibly shuts it down.
-
Constructor Details
-
DefaultExecutorFactory
public DefaultExecutorFactory()
-
-
Method Details
-
get
Description copied from interface:GrpcTransportOptions.ExecutorFactoryGets an executor service instance.- Specified by:
getin interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
release
Description copied from interface:GrpcTransportOptions.ExecutorFactoryReleases resources used by the executor and possibly shuts it down.- Specified by:
releasein interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-