Uses of Class
com.sap.cloud.sdk.cloudplatform.thread.exception.ThreadContextExecutionException
Package
Description
-
Uses of ThreadContextExecutionException in com.sap.cloud.sdk.cloudplatform.requestheader
Modifier and TypeMethodDescriptionstatic void
RequestHeaderAccessor.executeWithFallbackHeaderContainer
(Supplier<RequestHeaderContainer> headers, Executable executable) Runs the givenexecutable
with the givenheaders
as a fallback option that should be used in case there is no currentRequestHeaderContainer
.static <T> T
RequestHeaderAccessor.executeWithFallbackHeaderContainer
(Supplier<RequestHeaderContainer> headers, Callable<T> callable) Runs the givencallable
with the givenheaders
as a fallback option that should be used in case there is no currentRequestHeaderContainer
.static void
RequestHeaderAccessor.executeWithHeaderContainer
(RequestHeaderContainer headers, Executable executable) Runs the givenexecutable
with the givenheaders
available.static <T> T
RequestHeaderAccessor.executeWithHeaderContainer
(RequestHeaderContainer headers, Callable<T> callable) Runs the givencallable
with the givenheaders
available and returns the result.static void
RequestHeaderAccessor.executeWithHeaderContainer
(Map<String, String> headers, Executable executable) Runs the givenexecutable
with the givenheaders
available.static <T> T
RequestHeaderAccessor.executeWithHeaderContainer
(Map<String, String> headers, Callable<T> callable) Runs the givencallable
with the givenheaders
available and returns the result. -
Uses of ThreadContextExecutionException in com.sap.cloud.sdk.cloudplatform.security
Modifier and TypeMethodDescriptionstatic void
AuthTokenAccessor.executeWithAuthToken
(AuthToken authToken, Executable executable) Execute the givenExecutable
with a given token.static <T> T
AuthTokenAccessor.executeWithAuthToken
(AuthToken authToken, Callable<T> callable) Execute the givenCallable
with a given token.protected <T> T
DefaultAuthTokenFacade.executeWithAuthToken
(AuthToken authToken, Callable<T> callable) static void
AuthTokenAccessor.executeWithFallbackAuthToken
(Supplier<AuthToken> fallbackAuthToken, Executable executable) Execute the givenExecutable
, using the given token as fallback if there is no other token available.static <T> T
AuthTokenAccessor.executeWithFallbackAuthToken
(Supplier<AuthToken> fallbackAuthToken, Callable<T> callable) Execute the givenCallable
, using the given token as fallback if there is no other token available. -
Uses of ThreadContextExecutionException in com.sap.cloud.sdk.cloudplatform.security.principal
Modifier and TypeMethodDescriptionstatic void
PrincipalAccessor.executeWithFallbackPrincipal
(Supplier<Principal> fallbackPrincipal, Executable executable) Execute the givenExecutable
, using the given principal as fallback if there is no other principal available.static <T> T
PrincipalAccessor.executeWithFallbackPrincipal
(Supplier<Principal> fallbackPrincipal, Callable<T> callable) Execute the givenCallable
, using the given principal as fallback if there is no other principal available.static void
PrincipalAccessor.executeWithPrincipal
(Principal principal, Executable executable) Execute the givenExecutable
on behalf of a given principal.static <T> T
PrincipalAccessor.executeWithPrincipal
(Principal principal, Callable<T> callable) Execute the givenCallable
on behalf of a given principal. -
Uses of ThreadContextExecutionException in com.sap.cloud.sdk.cloudplatform.tenant
Modifier and TypeMethodDescriptionstatic void
TenantAccessor.executeWithFallbackTenant
(Supplier<Tenant> fallbackTenant, Executable executable) Execute the givenExecutable
, using the given tenant as fallback if there is no other tenant available.static <T> T
TenantAccessor.executeWithFallbackTenant
(Supplier<Tenant> fallbackTenant, Callable<T> callable) Execute the givenCallable
, using the given tenant as fallback if there is no other tenant available.static void
TenantAccessor.executeWithTenant
(Tenant tenant, Executable executable) Execute the givenExecutable
on behalf of a given tenant.static <T> T
TenantAccessor.executeWithTenant
(Tenant tenant, Callable<T> callable) Execute the givenCallable
on behalf of a given tenant. -
Uses of ThreadContextExecutionException in com.sap.cloud.sdk.cloudplatform.thread
Modifier and TypeMethodDescriptionvoid
ThreadContextExecutor.execute
(Executable executable) Executes the givenExecutable
as if it was called inside aThreadContext
.<T> T
Executes the givenCallable
as if it was called inside aThreadContext
.