Package org.wso2.carbon.base
Interface UnloadTenantTask<T>
public interface UnloadTenantTask<T>
Represents a task that will be run when a tenant is unloaded.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(int tenantId) The method that will be called by the runtime when a tenant is unloaded.voidThe 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
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.
-