org.jacorb.notification.engine

Class WaitRetryStrategy

Implemented Interfaces:
Disposable

public class WaitRetryStrategy
extends RetryStrategy

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

Author:
Alphonse Bendt

Field Summary

static long
WAIT_INCREMENT_DEFAULT
static long
WAIT_TIME_DEFAULT

Fields inherited from class org.jacorb.notification.engine.RetryStrategy

messageConsumer_, pushOperation_

Constructor Summary

WaitRetryStrategy(MessageConsumer messageConsumer, PushOperation pushOperation)
WaitRetryStrategy(MessageConsumer messageConsumer, PushOperation pushOperation, long startingWaitTime, long waitTimeIncrement)

Method Summary

protected long
getTimeToWait()
void
retry()

Methods inherited from class org.jacorb.notification.engine.RetryStrategy

dispose, getTimeToWait, isFatalException, remoteExceptionOccured, retry, shouldRetry

Field Details

WAIT_INCREMENT_DEFAULT

public static final long WAIT_INCREMENT_DEFAULT

Field Value:
3000L


WAIT_TIME_DEFAULT

public static final long WAIT_TIME_DEFAULT

Field Value:
1000L

Constructor Details

WaitRetryStrategy

public WaitRetryStrategy(MessageConsumer messageConsumer,
                         PushOperation pushOperation)


WaitRetryStrategy

public WaitRetryStrategy(MessageConsumer messageConsumer,
                         PushOperation pushOperation,
                         long startingWaitTime,
                         long waitTimeIncrement)

Method Details

getTimeToWait

protected long getTimeToWait()
Overrides:
getTimeToWait in interface RetryStrategy


retry

public void retry()
            throws RetryException
Overrides:
retry in interface RetryStrategy