TenantAwareRunner

public final class TenantAwareRunner

A convenience API for TenantAware operations.

Functions

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.
Link copied to clipboard
public void run(Runnable operation)
Runs the given operation for the given tenant.
Link copied to clipboard
public static TenantAwareRunner with(TenantId tenant)
Creates a new TenantAwareRunner, which runs all the given operations for the given 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.