public final class NoopTenantControl extends Object implements TenantControl
NOOP_TENANT_CONTROL| Constructor and Description |
|---|
NoopTenantControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
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.
|
public Closeable setTenant(boolean createRequestScope)
TenantControlsetTenant in interface TenantControlcreateRequestScope - whether to create CDI request scope for this contextpublic void unregister()
TenantControlunregister in interface TenantControlCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.