public abstract class UnSharedContext<K> extends AbstractContext<K>
AbstractContext.ThreadLocalDataMANAGE_THREAD_LOCAL| Constructor and Description |
|---|
UnSharedContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate(K key)
Deactivates the current context using the given key from the context of the thread
|
protected Lock |
getLock(String id)
In case the context is sharable, we will need a lock to synchronize the accesses
|
protected boolean |
isSharable()
Indicates whether the objects of the context that can shared or not.
|
void |
unregister(K key)
Unregisters a given key from the context
|
activate, createStorage, destroy, destroy, destroy, get, get, getFromCache, getId, getInstance, getStorage, getThreadContext, isActive, putInCache, register, setStoragepublic void unregister(K key)
unregister in interface AdvancedContext<K>unregister in class AbstractContext<K>key - the key to unregisterpublic void deactivate(K key)
deactivate in interface AdvancedContext<K>deactivate in class AbstractContext<K>key - the key to use to deactivate the contextprotected final boolean isSharable()
isSharable in class AbstractContext<K>true if the components are sharable, false otherwise.protected final Lock getLock(String id)
getLock in class AbstractContext<K>id - the id of the contextual for which we want a lockCopyright © 2021 eXo Platform SAS. All Rights Reserved.