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 Constructor Description DefaultExecutorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledExecutorServiceget()Gets an executor service instance.voidrelease(ScheduledExecutorService executor)Releases resources used by the executor and possibly shuts it down.
-
-
-
Method Detail
-
get
public ScheduledExecutorService get()
Description copied from interface:GrpcTransportOptions.ExecutorFactoryGets an executor service instance.- Specified by:
getin interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
release
public void release(ScheduledExecutorService executor)
Description copied from interface:GrpcTransportOptions.ExecutorFactoryReleases resources used by the executor and possibly shuts it down.- Specified by:
releasein interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
-