public abstract class SharedContext<K> extends AbstractContext<K>
ConcurrentMapAbstractContext.ThreadLocalDataMANAGE_THREAD_LOCAL| Constructor and Description |
|---|
SharedContext() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
activate, createStorage, deactivate, destroy, destroy, destroy, get, get, getFromCache, getId, getInstance, getStorage, getThreadContext, isActive, putInCache, register, setStorage, unregisterprotected final boolean isSharable()
isSharable in class AbstractContext<K>true if the components are sharable, false otherwise.protected Lock getLock(String id)
getLock in class AbstractContext<K>id - the id of the contextual for which we want a lockCopyright © 2019 eXo Platform SAS. All Rights Reserved.