Interface UnloadTenantTask<T>


public interface UnloadTenantTask<T>
Represents a task that will be run when a tenant is unloaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cleanup(int tenantId)
    The method that will be called by the runtime when a tenant is unloaded.
    void
    register(int tenantId, T registration)
    The method that will be called by an implementation when registering an item for which this task would be run for a given tenant.
  • Method Details

    • register

      void register(int tenantId, T registration)
      The method that will be called by an implementation when registering an item for which this task would be run for a given tenant.
      Parameters:
      tenantId - the tenant's identifier.
      registration - the object that needs unloading.
    • cleanup

      void cleanup(int tenantId)
      The method that will be called by the runtime when a tenant is unloaded.
      Parameters:
      tenantId - the tenant's identifier.