org.apache.jetspeed.util.interceptors
Class MethodReplayInterceptor

java.lang.Object
  extended by 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

Constructor Summary
MethodReplayInterceptor()
           
 
Method Summary
 int getRetryCount()
           
 int getRetryInterval()
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
          Encloses super.invoke() in a try/catch block, where the catch block contains additional retry logic.
 void setReplayDecisionMaker(TransactionalMethodReplayDecisionMaker replayDecisionMaker)
           
 void setRetryCount(int retryCount)
           
 void setRetryInterval(int retryInterval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodReplayInterceptor

public MethodReplayInterceptor()
Method Detail

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-2010 Apache Software Foundation. All Rights Reserved.