CacheResult.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| private static <T extends Throwable> T | |
| private static int | |
| protected Object | invoke(CacheOperationInvocationContext<CacheResultOperation> context, CacheOperationInvoker invoker)
Implements abstract org.
|
| private Cache | |
| private static CacheOperationInvoker. | Returns: a clone exception with a rewritten call stack composed of the current call stack up to (included) the common ancestor specified by theclassName and
methodName arguments, followed by stack trace elements of the specified
exception after the common ancestor.the exception to merge with the current call stack exception, String the class name of the common ancestor className, String the method name of the common ancestor methodName)Rewrite the call stack of the specified |
| CacheResultInterceptor | back to summary |
|---|---|
| public CacheResultInterceptor(CacheErrorHandler errorHandler) | |
| cacheException | back to summary |
|---|---|
| protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) | |
| checkForCachedException | back to summary |
|---|---|
| protected void checkForCachedException(Cache exceptionCache, Object cacheKey) Check for a cached exception. If the exception is found, throw it directly. | |
| cloneException | back to summary |
|---|---|
private static <T extends Throwable> T cloneException(T exception)
| |
| findCommonAncestorIndex | back to summary |
|---|---|
| private static int findCommonAncestorIndex(StackTraceElement[] callStack, String className, String methodName) | |
| invoke | back to summary |
|---|---|
| protected Object invoke(CacheOperationInvocationContext<CacheResultOperation> context, CacheOperationInvoker invoker) Implements abstract org. | |
| resolveExceptionCache | back to summary |
|---|---|
private Cache resolveExceptionCache(CacheOperationInvocationContext<CacheResultOperation> context)
| |
| rewriteCallStack | back to summary |
|---|---|
| private static CacheOperationInvoker. Rewrite the call stack of the specified Clone the specified exception. If the exception is not Used to make sure that a cached exception has a valid invocation context.
| |