Class DefaultWorkloadApiClient.ClientOptions

java.lang.Object
io.spiffe.workloadapi.DefaultWorkloadApiClient.ClientOptions
Enclosing class:
DefaultWorkloadApiClient

public static class DefaultWorkloadApiClient.ClientOptions extends Object
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.