| Package | Description | 
|---|---|
| com.hazelcast.core | Provides core API interfaces/classes. | 
| com.hazelcast.spi.tenantcontrol | Classes for tenant control | 
| Modifier and Type | Method and Description | 
|---|---|
| default DestroyEventContext | DistributedObject. getDestroyContextForTenant()Returns a hook which can be used by tenant control implementation to clean
 up resources once a tenant is destroyed. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TenantControl. registerObject(DestroyEventContext destroyEventContext)Registers a hook to decouple any Hazelcast object when the tenant is destroyed,
 This is used, for example, to delete all associated caches from the application
 when it gets undeployed, so there are no  ClassCastExceptionafterwards. | 
Copyright © 2023 Hazelcast, Inc.. All rights reserved.