Interface CurrentTenantResolver

All Superinterfaces:
Supplier<Optional<String>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CurrentTenantResolver extends Supplier<Optional<String>>
The CurrentTenantResolver implementation resolves the current tenant context when using service binding configuration that supports multi tenancy.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Resolve the current tenant context in order to dispatch notifications to the correct tenant.
  • Method Details

    • get

      Resolve the current tenant context in order to dispatch notifications to the correct tenant. For identification, the tenant's identity zone id is used.
      Specified by:
      get in interface Supplier<Optional<String>>
      Returns:
      The current tenant-id or an empty optional if not set