public abstract class JaloTypeCacheUnit extends AbstractCacheUnit
| Modifier and Type | Class and Description |
|---|---|
static class |
JaloTypeCacheUnit.JaloTypeCacheKey |
INVALIDATIONTYPE_CREATED, INVALIDATIONTYPE_MODIFIED, INVALIDATIONTYPE_MODIFIED_STRING, INVALIDATIONTYPE_REMOVED, INVALIDATIONTYPE_REMOVED_STRING, UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JaloTypeCacheUnit(Cache cache,
int typecode,
Object additionalKey) |
protected |
JaloTypeCacheUnit(Cache cache,
int typecode,
Object additionalKey,
int invalidationType) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
compute() |
Object[] |
createKey() |
Object |
getCached()
get the cached object from this cache unit.
|
RegistrableCacheKey |
getKey() |
addedToCacheBeforeComputation, arrayDeepEqualsReverse, equals, executeInvalidation, get, getCache, getInvalidationTopicDepth, getKeyAsArray, getLoader, getTenantID, getWithoutCompute, getWithoutComputeIgnoringTransaction, hashCode, hintValue, invalidate, isCachingSupported, isValueKnown, isZombie, keepAlive, load, markKeptAlive, removedFromCache, toString, useCacheprotected JaloTypeCacheUnit(Cache cache, int typecode, Object additionalKey, int invalidationType)
public Object[] createKey()
createKey in class AbstractCacheUnitpublic RegistrableCacheKey getKey()
getKey in class AbstractCacheUnitpublic abstract Object compute()
compute in class AbstractCacheUnitpublic Object getCached()
helper method which does exactly the same as AbstractCacheUnit.get(), but catches the exception and throws a RuntimeException (JaloSystemException) instead. because of that you don't have to add a try/catch block in your code.
Copyright © 2017 SAP SE. All Rights Reserved.