org.jacorb.notification.engine
Class WaitRetryStrategy

java.lang.Object
  extended byorg.jacorb.notification.engine.RetryStrategy
      extended byorg.jacorb.notification.engine.WaitRetryStrategy
All 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, isFatalException, remoteExceptionOccured, shouldRetry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_TIME_DEFAULT

public static final long WAIT_TIME_DEFAULT
See Also:
Constant Field Values

WAIT_INCREMENT_DEFAULT

public static final long WAIT_INCREMENT_DEFAULT
See Also:
Constant Field Values
Constructor Detail

WaitRetryStrategy

public WaitRetryStrategy(MessageConsumer messageConsumer,
                         PushOperation pushOperation)

WaitRetryStrategy

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

getTimeToWait

protected long getTimeToWait()
Specified by:
getTimeToWait in class RetryStrategy

retry

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