org.jacorb.notification.engine
Class AbstractRetryStrategy
java.lang.Object
org.jacorb.notification.engine.AbstractRetryStrategy
- All Implemented Interfaces:
- RetryStrategy, org.picocontainer.Disposable
- Direct Known Subclasses:
- AlwaysDisposeRetryStrategy, TaskProcessorRetryStrategy, WaitRetryStrategy
public abstract class AbstractRetryStrategy
- extends Object
- implements RetryStrategy
- Author:
- Alphonse Bendt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger_
protected final org.slf4j.Logger logger_
pushOperation_
protected final PushOperation pushOperation_
pushSupplier_
protected final IProxyPushSupplier pushSupplier_
AbstractRetryStrategy
public AbstractRetryStrategy(IProxyPushSupplier pushSupplier,
PushOperation operation)
dispose
public void dispose()
- Specified by:
dispose in interface org.picocontainer.Disposable
isRetryAllowed
protected boolean isRetryAllowed()
remoteExceptionOccured
protected void remoteExceptionOccured(Exception error)
throws RetryException
- Throws:
RetryException
isFatalException
public static boolean isFatalException(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
Copyright © 2015 JacORB. All rights reserved.