server
1.9.0
jvm
server
/
io.spine.server.tenant
/
TenantAwareRunner
Tenant
Aware
Runner
public
final
class
TenantAwareRunner
A convenience API for
TenantAware
operations.
Members
Functions
evaluate
Link copied to clipboard
public
T
evaluate
<
T
>
(
Supplier
<
T
>
operation
)
Runs the given
operation
for the given tenant and returns the result of the operation.
run
Link copied to clipboard
public
void
run
(
Runnable
operation
)
Runs the given
operation
for the given tenant.
with
Link copied to clipboard
public
static
TenantAwareRunner
with
(
TenantId tenant
)
Creates a new
TenantAwareRunner
, which runs all the given operations for the given
tenant
.
with
Current
Tenant
Link copied to clipboard
public
static
TenantAwareRunner
withCurrentTenant
(
boolean multitenant
)
Creates a new
TenantAwareRunner
, which runs all the given operations for the current
tenant
.