tenant

public Optional<TenantId> tenant()

Obtains the tenant of this client connection in a multitenant application, and empty Optional in a single-tenant one.

See also