public static interface GrpcTransportOptions.ExecutorFactory<T>
An interface for ExecutorService factories. Implementations of this interface can be
used to provide an user-defined executor to execute requests. Any implementation of this
interface must override the get() method to return the desired executor. The
release(executor) method should be overriden to free resources used by the executor (if
needed) according to application's logic.
Implementation must provide a public no-arg constructor. Loading of a factory implementation
is done via java.util.ServiceLoader.
Type Parameter
Name
Description
T
Methods
get()
public abstract T get()
Gets an executor service instance.
Returns
Type
Description
T
release(T executor)
public abstract void release(T executor)
Releases resources used by the executor and possibly shuts it down.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-02 UTC."],[],[]]