org.ikasan.framework.exception
Class RetryAction

java.lang.Object
  extended by org.ikasan.framework.exception.RetryAction
All Implemented Interfaces:
IkasanExceptionAction

public class RetryAction
extends Object
implements IkasanExceptionAction

Exception Action indicating the operation should be retried

Author:
Ikasan Development Team

Field Summary
static Integer RETRY_INFINITE
          indicator for an infinite retry
 
Constructor Summary
RetryAction()
          Default Constructor
RetryAction(long delay, int maxRetries)
          Constructor
 
Method Summary
 long getDelay()
          Accessor for delay
 int getMaxRetries()
          Accessor for maxRetries
 void setDelay(long delay)
          Mutator for delay
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RETRY_INFINITE

public static final Integer RETRY_INFINITE
indicator for an infinite retry

Constructor Detail

RetryAction

public RetryAction()
Default Constructor


RetryAction

public RetryAction(long delay,
                   int maxRetries)
Constructor

Parameters:
delay - - The delay in milliseconds before retrying
maxRetries - - The maximum number of retries to attempt
Method Detail

getDelay

public long getDelay()
Accessor for delay

Returns:
delay

setDelay

public void setDelay(long delay)
Mutator for delay

Parameters:
delay -

getMaxRetries

public int getMaxRetries()
Accessor for maxRetries

Returns:
maxRetries

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Ikasan. All Rights Reserved.