public class NoopTenantControlFactory extends Object implements TenantControlFactory
TenantControlFactory
, always returns a no-op tenant controlNOOP_TENANT_CONTROL_FACTORY
Constructor and Description |
---|
NoopTenantControlFactory() |
Modifier and Type | Method and Description |
---|---|
TenantControl |
saveCurrentTenant(DestroyEventContext event)
To be called from the application's thread to connect a Hazelcast object
with a particular tenant, e.g.
|
public TenantControl saveCurrentTenant(DestroyEventContext event)
TenantControlFactory
saveCurrentTenant
in interface TenantControlFactory
event
- hook to destroy 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 ClassCastExceptions afterwardsCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.