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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup(int tenantId)The method that will be called by the runtime when a tenant is unloaded.voidregister(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 Detail
-
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.
-
-