org.apache.jetspeed.util.interceptors
Class MethodReplayInterceptor
java.lang.Object
org.apache.jetspeed.util.interceptors.MethodReplayInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class MethodReplayInterceptor
- extends java.lang.Object
- implements org.aopalliance.intercept.MethodInterceptor
Generic aspect that will attempt to replay a method invocation if one of a
set of specified exceptions is thrown from its execution.
- Author:
- a336317
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodReplayInterceptor
public MethodReplayInterceptor()
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
- Encloses
super.invoke()
in a try/catch block, where the
catch block contains additional retry logic.
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
getRetryCount
public int getRetryCount()
setRetryCount
public void setRetryCount(int retryCount)
getRetryInterval
public int getRetryInterval()
setRetryInterval
public void setRetryInterval(int retryInterval)
setReplayDecisionMaker
public void setReplayDecisionMaker(TransactionalMethodReplayDecisionMaker replayDecisionMaker)
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.