Interface CommandWithOneOrMoreTenantsStep<T>

All Superinterfaces:
CommandWithTenantStep<T>
All Known Subinterfaces:
ActivateJobsCommandStep1.ActivateJobsCommandStep3, JobWorkerBuilderStep1.JobWorkerBuilderStep3, StreamJobsCommandStep1.StreamJobsCommandStep3
All Known Implementing Classes:
ActivateJobsCommandImpl, JobWorkerBuilderImpl, StreamJobsCommandImpl

public interface CommandWithOneOrMoreTenantsStep<T> extends CommandWithTenantStep<T>
  • Method Details

    • tenantId

      T tenantId(String tenantId)
      Specifies the tenant that will own any entities (e.g. process definition, process instances, etc.) resulting from this command, or that owns any entities (e.g. jobs) referred to from this command.

      Multi-tenancy

      Multiple tenants can share a Zeebe cluster. Entities can be assigned to a specific tenant using an identifier. Only that tenant can access these entities.

      Any entities created before multi-tenancy has been enabled in the Zeebe cluster, are assigned to the CommandWithTenantStep.DEFAULT_TENANT_IDENTIFIER.

      If no tenant is explicitly specified, then the command is rejected.

      One or more tenants

      This method can be called multiple times to specify multiple tenants.

      This can be useful when requesting jobs for multiple tenants at once. Each of the activated jobs will be owned by the tenant that owns the corresponding process instance.

      Specified by:
      tenantId in interface CommandWithTenantStep<T>
      Parameters:
      tenantId - the identifier of the tenant to specify for this command, e.g. "ACME"
      Returns:
      the builder for this command with the tenant specified
      Since:
      8.3
    • tenantIds

      T tenantIds(List<String> tenantIds)
      Specifies the tenants that may own any entities (e.g. process definition, process instances, etc.) resulting from this command.

      One or more tenants

      This can be useful when requesting jobs for multiple tenants at once. Each of the activated jobs will be owned by the tenant that owns the corresponding process instance.

      Parameters:
      tenantIds - the identifiers of the tenants to specify for this command, e.g. ["ACME", "OTHER"]
      Returns:
      the builder for this command with the tenants specified
      Since:
      8.3
      See Also:
    • tenantIds

      T tenantIds(String... tenantIds)
      Shorthand method for tenantIds(List).
      Parameters:
      tenantIds - the identifiers of the tenants to specify for this command, e.g. ["ACME", "OTHER"]
      Returns:
      the builder for this command with the tenants specified
      Since:
      8.3
      See Also: