public class Cache2Test.TestObjectCacheManager<T> extends AbstractObjectCacheManager<T>
| Modifier and Type | Field and Description |
|---|---|
int |
creationCounter |
int |
expirationCounter |
int |
invalidationCounter |
int |
requestCounter |
| Constructor and Description |
|---|
TestObjectCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
handleCreation(ObjectKey<T> objectKey)
Default implementation of how objects should be created.
|
protected void |
handleExpiration(ObjectKey<T> objectKey)
Default implementation simply removes the expired object.
|
protected void |
handleInvalidation(ObjectKey<T> objectKey)
Default implementation simply removed the invalidated object.
|
protected T |
handleRequest(ObjectKey<T> objectKey)
Default implementation simply requests the cache with the given key.
|
fetch, getCache, getDebugKey, invalidate, setCache, setExpirationCheck, setObjectAutoCreationpublic int expirationCounter
public int invalidationCounter
public int requestCounter
public int creationCounter
protected void handleExpiration(ObjectKey<T> objectKey)
AbstractObjectCacheManagerhandleExpiration in class AbstractObjectCacheManager<T>protected void handleInvalidation(ObjectKey<T> objectKey)
AbstractObjectCacheManagerhandleInvalidation in class AbstractObjectCacheManager<T>protected T handleRequest(ObjectKey<T> objectKey)
AbstractObjectCacheManagerhandleRequest in class AbstractObjectCacheManager<T>protected T handleCreation(ObjectKey<T> objectKey)
AbstractObjectCacheManagerhandleCreation in class AbstractObjectCacheManager<T>objectKey - the objectkeyCopyright © 2018 SAP SE. All Rights Reserved.