Class ThreadContextExecutors

java.lang.Object
com.sap.cloud.sdk.cloudplatform.thread.ThreadContextExecutors

public class ThreadContextExecutors extends Object
Convenience class, giving static access to the functionality of a ThreadContextExecutorService, using a configurable instance.

For example:

 final Future<Try<Tenant>> tenant =
     ThreadContextExecutors.submit(
         // code that is executed within the ThreadContext created by DefaultThreadContextExecutorService
         TenantAccessor::tryGetCurrentTenant);