@Beta public interface TenantControlFactory
TenantControlFactory
supplies TenantControl
objects when
Hazelcast service attaches the tenant control to a distributed object.
An implementation of TenantControlFactory
is instantiated
via ServiceLoader
, so in order to be picked up:
META-INF/services/com.hazelcast.spi.tenantcontrol.TenantControlFactory
Modifier and Type | Field and Description |
---|---|
static TenantControlFactory |
NOOP_TENANT_CONTROL_FACTORY
Default tenant control factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isClassesAlwaysAvailable()
If the method returns false (classes are not always available),
all objects, e.g.
|
TenantControl |
saveCurrentTenant()
To be called from the application's thread to connect a Hazelcast object
with a particular tenant, e.g.
|
static final TenantControlFactory NOOP_TENANT_CONTROL_FACTORY
TenantControl.NOOP_TENANT_CONTROL
TenantControl saveCurrentTenant()
boolean isClassesAlwaysAvailable()
Copyright © 2021 Hazelcast, Inc.. All rights reserved.