Uses of Interface
com.sap.cloud.sdk.cloudplatform.thread.Executable
Package
Description
-
Uses of Executable 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 void
RequestHeaderAccessor.executeWithHeaderContainer
(RequestHeaderContainer headers, Executable executable) Runs the givenexecutable
with the givenheaders
available.static void
RequestHeaderAccessor.executeWithHeaderContainer
(Map<String, String> headers, Executable executable) Runs the givenexecutable
with the givenheaders
available. -
Uses of Executable 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 void
AuthTokenAccessor.executeWithFallbackAuthToken
(Supplier<AuthToken> fallbackAuthToken, Executable executable) Execute the givenExecutable
, using the given token as fallback if there is no other token available. -
Uses of Executable 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 void
PrincipalAccessor.executeWithPrincipal
(Principal principal, Executable executable) Execute the givenExecutable
on behalf of a given principal. -
Uses of Executable 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 void
TenantAccessor.executeWithTenant
(Tenant tenant, Executable executable) Execute the givenExecutable
on behalf of a given tenant. -
Uses of Executable in com.sap.cloud.sdk.cloudplatform.thread
Modifier and TypeMethodDescriptionvoid
ThreadContextExecutor.execute
(Executable executable) Executes the givenExecutable
as if it was called inside aThreadContext
.