|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.voidsearch.voidbase.apps.cache.CacheModuleLockStrategy
public class CacheModuleLockStrategy
CacheModuleLockStrategy handles atomicity of cache operations based on cache handler configuration
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
CacheModuleLockStrategy()
Creates a new instance of CacheModuleLockStrategy |
|
| Method Summary | |
|---|---|
protected CacheValue |
execute(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
Executes cache operation with respect to operation's atomicity and proxies it down to specific executors (atomic, global lock, etc.) |
protected CacheValue |
execute(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
Executes cache operation with respect to operation's atomicity and proxies it down to specific executors (atomic, global lock, etc.) |
protected CacheValue |
executeAtomicLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
Executes atomic operation on cache |
protected CacheValue |
executeAtomicLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
Executes atomic operation on cache |
protected CacheValue |
executeGlobalLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
Executes globally locked operation on cache |
protected CacheValue |
executeGlobalLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
|
protected CacheValue |
executeOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
Executes operation on cache without any locking |
protected CacheValue |
executeOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
Executes operation on cache without any locking |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
| Constructor Detail |
|---|
public CacheModuleLockStrategy()
| Method Detail |
|---|
protected CacheValue execute(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
throws CacheException
handler - operation - route - params - key - value -
CacheException
protected CacheValue execute(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
throws CacheException
handler - operation - name - key - value -
CacheException
protected CacheValue executeAtomicLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
throws CacheException,
java.lang.InterruptedException
handler - operation - route - params - key - value -
CacheException
java.lang.InterruptedException
protected CacheValue executeAtomicLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
throws CacheException,
java.lang.InterruptedException
handler - operation - name - key - value -
CacheException
java.lang.InterruptedException
protected CacheValue executeGlobalLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
throws CacheException
handler - operation - route - params - key - value -
CacheException
protected CacheValue executeGlobalLockOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
throws CacheException
CacheException
protected CacheValue executeOperation(VoidBaseCache handler,
java.lang.String operation,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
throws CacheException
handler - operation - route - params - key - value -
CacheException
protected CacheValue executeOperation(VoidBaseCache handler,
java.lang.String operation,
java.lang.String name,
java.lang.String key,
java.lang.String value)
throws CacheException
handler - operation - name - key - value -
CacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||