org.jacorb.notification.engine

Class RetryStrategy

Implemented Interfaces:
Disposable
Known Direct Subclasses:
TaskProcessorRetryStrategy, WaitRetryStrategy

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

Version:
$Id: RetryStrategy.java,v 1.3 2004/05/06 12:39:59 nicolas Exp $

Author:
Alphonse Bendt

Field Summary

protected MessageConsumer
messageConsumer_
protected PushOperation
pushOperation_

Constructor Summary

RetryStrategy(MessageConsumer mc, PushOperation operation)

Method Summary

void
dispose()
protected long
getTimeToWait()
static boolean
isFatalException(Throwable error)
void
remoteExceptionOccured(Throwable error)
void
retry()
boolean
shouldRetry()

Field Details

messageConsumer_

protected MessageConsumer messageConsumer_


pushOperation_

protected PushOperation pushOperation_

Constructor Details

RetryStrategy

public RetryStrategy(MessageConsumer mc,
                     PushOperation operation)

Method Details

dispose

public void dispose()
Specified by:
dispose in interface Disposable


getTimeToWait

protected long getTimeToWait()


isFatalException

public static boolean isFatalException(Throwable error)


remoteExceptionOccured

public void remoteExceptionOccured(Throwable error)
            throws RetryException


retry

public void retry()
            throws RetryException


shouldRetry

public boolean shouldRetry()