Class DefaultWorkloadApiClient.ClientOptions
java.lang.Object
io.spiffe.workloadapi.DefaultWorkloadApiClient.ClientOptions
- Enclosing class:
DefaultWorkloadApiClient
Options for creating a new
DefaultWorkloadApiClient.
spiffeSocketPath Workload API Socket Endpoint address.
backoffPolicy A custom instance of a ExponentialBackoffPolicy to configure the retries to reconnect
to the Workload API.
executorService A custom ExecutorService to configure the Grpc stubs and channels.
If it is not provided, an Executors.newCachedThreadPool() is used by default.
The executorService provided will be shutdown when the WorkloadApiClient instance is closed.
-
Constructor Summary
ConstructorsConstructorDescriptionClientOptions(String spiffeSocketPath, ExponentialBackoffPolicy exponentialBackoffPolicy, ExecutorService executorService) -
Method Summary
-
Constructor Details
-
ClientOptions
public ClientOptions(String spiffeSocketPath, ExponentialBackoffPolicy exponentialBackoffPolicy, ExecutorService executorService)
-