@Beta public interface TenantControl extends Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static TenantControl | NOOP_TENANT_CONTROLDefault no-op tenant control | 
| Modifier and Type | Method and Description | 
|---|---|
| Closeable | setTenant(boolean createRequestScope)Establish this tenant's thread-local context
 Particular TenantControl implementation will control the details of how
 createRequestScope parameter is handled, but in general,
 if createRequestScope = false, only ClassLoader is set up,
 if createRequestScope = true, in addition to ClassLoader,
 other things like invocation, EJB/JPA/CDI context should be set up as well
 In other words, if only app class needs to be resolved, set createRequestScope to false
 If actually calling into user's code, set createRequestScope to true | 
| void | unregister()To be called when the Hazelcast object attached to this tenant is destroyed. | 
static final TenantControl NOOP_TENANT_CONTROL
Closeable setTenant(boolean createRequestScope)
createRequestScope - whether to create CDI request scope for this contextvoid unregister()
Copyright © 2020 Hazelcast, Inc.. All rights reserved.