@Beta @FunctionalInterface public interface TenantControlFactory
TenantControlobjects when Hazelcast service attaches the tenant control to a distributed object. An implementation of
TenantControlFactoryis instantiated via
ServiceLoader, so in order to be picked up:
|Modifier and Type||Field and Description|
Default tenant control factory.
TenantControl saveCurrentTenant(DestroyEventContext event)
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 afterwards
Copyright © 2021 Hazelcast, Inc.. All rights reserved.