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 ScheduledExecutorService
get()
Gets an executor service instance.void
release(ScheduledExecutorService executor)
Releases resources used by the executor and possibly shuts it down.
-
-
-
Method Detail
-
get
public ScheduledExecutorService get()
Description copied from interface:GrpcTransportOptions.ExecutorFactory
Gets an executor service instance.- Specified by:
get
in interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
release
public void release(ScheduledExecutorService executor)
Description copied from interface:GrpcTransportOptions.ExecutorFactory
Releases resources used by the executor and possibly shuts it down.- Specified by:
release
in interfaceGrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
-
-