@InternalApi public static class GrpcTransportOptions.DefaultExecutorFactory extends Object implements GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
Constructor and Description |
---|
DefaultExecutorFactory() |
Modifier and Type | Method and Description |
---|---|
ScheduledExecutorService |
get()
Gets an executor service instance.
|
void |
release(ScheduledExecutorService executor)
Releases resources used by the executor and possibly shuts it down.
|
public ScheduledExecutorService get()
GrpcTransportOptions.ExecutorFactory
get
in interface GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
public void release(ScheduledExecutorService executor)
GrpcTransportOptions.ExecutorFactory
release
in interface GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService>
Copyright © 2019 Google LLC. All rights reserved.