org.jacorb.notification.engine
Class AbstractRetryStrategy

java.lang.Object
  extended byorg.jacorb.notification.engine.AbstractRetryStrategy
All Implemented Interfaces:
org.picocontainer.Disposable, Disposable, RetryStrategy
Direct Known Subclasses:
AlwaysDisposeRetryStrategy, TaskProcessorRetryStrategy, WaitRetryStrategy

public abstract class AbstractRetryStrategy
extends java.lang.Object
implements RetryStrategy

Version:
$Id: AbstractRetryStrategy.java,v 1.5 2005/08/21 13:30:16 alphonse.bendt Exp $
Author:
Alphonse Bendt

Field Summary
protected  org.apache.avalon.framework.logger.Logger logger_
           
protected  PushOperation pushOperation_
           
protected  IProxyPushSupplier pushSupplier_
           
 
Constructor Summary
AbstractRetryStrategy(IProxyPushSupplier pushSupplier, PushOperation operation)
           
 
Method Summary
 void dispose()
           
protected abstract  long getTimeToWait()
           
static boolean isFatalException(java.lang.Exception error)
           
protected  boolean isRetryAllowed()
           
protected  void remoteExceptionOccured(java.lang.Exception error)
           
 void retry()
           
protected abstract  void retryInternal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger_

protected final org.apache.avalon.framework.logger.Logger logger_

pushOperation_

protected final PushOperation pushOperation_

pushSupplier_

protected final IProxyPushSupplier pushSupplier_
Constructor Detail

AbstractRetryStrategy

public AbstractRetryStrategy(IProxyPushSupplier pushSupplier,
                             PushOperation operation)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.picocontainer.Disposable

isRetryAllowed

protected boolean isRetryAllowed()

remoteExceptionOccured

protected void remoteExceptionOccured(java.lang.Exception error)
                               throws RetryException
Throws:
RetryException

isFatalException

public static boolean isFatalException(java.lang.Exception error)

getTimeToWait

protected abstract long getTimeToWait()

retry

public final void retry()
                 throws RetryException
Specified by:
retry in interface RetryStrategy
Throws:
RetryException

retryInternal

protected abstract void retryInternal()
                               throws RetryException
Throws:
RetryException