com.ca.jcs.cfg
Class ExceptionRetryGroup

java.lang.Object
  extended by com.ca.jcs.cfg.ExceptionRetryGroup

public class ExceptionRetryGroup
extends Object

This class is used to groups of exceptions based on their messages, so that separate retry settings can be configured for them.

See Also:
RetryOpProcessorProxy

Field Summary
static String BUSY_RETRY_GROUP
           
static String NORMAL_RETRY_GROUP
          Standard retry group names.
static String STALE_RETRY_GROUP
           
 
Constructor Summary
ExceptionRetryGroup()
           
 
Method Summary
 String getDisplayLogMessage()
          Specifies message to be logged when exception matching this group is encountered.
 Collection<String> getExceptionMessages()
          Get strings that are searched for anywhere in exception messages.
 int getResilientDelay()
          Specifies delay between a failed retry attempt and the next one.
 int getResilientMaxRetries()
          Specifies maximum number of times to retry before giving up.
 String getTag()
          Tag indicating purpose of this group, defaults to "RetryOpProcessorProxy" if not specified.
 void setDisplayLogMessage(String displayLogMessage)
           
 void setExceptionMessages(Collection<String> exceptionMessages)
           
 void setResilientDelay(int resilientDelay)
           
 void setResilientMaxRetries(int resilientMaxRetries)
           
 void setTag(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL_RETRY_GROUP

public static final String NORMAL_RETRY_GROUP
Standard retry group names.

See Also:
Constant Field Values

STALE_RETRY_GROUP

public static final String STALE_RETRY_GROUP
See Also:
Constant Field Values

BUSY_RETRY_GROUP

public static final String BUSY_RETRY_GROUP
See Also:
Constant Field Values
Constructor Detail

ExceptionRetryGroup

public ExceptionRetryGroup()
Method Detail

getExceptionMessages

public Collection<String> getExceptionMessages()
Get strings that are searched for anywhere in exception messages.


setExceptionMessages

public void setExceptionMessages(Collection<String> exceptionMessages)

getTag

public String getTag()
Tag indicating purpose of this group, defaults to "RetryOpProcessorProxy" if not specified.


setTag

public void setTag(String name)

getResilientDelay

public int getResilientDelay()
Specifies delay between a failed retry attempt and the next one.


setResilientDelay

public void setResilientDelay(int resilientDelay)

getResilientMaxRetries

public int getResilientMaxRetries()
Specifies maximum number of times to retry before giving up.


setResilientMaxRetries

public void setResilientMaxRetries(int resilientMaxRetries)

getDisplayLogMessage

public String getDisplayLogMessage()
Specifies message to be logged when exception matching this group is encountered.


setDisplayLogMessage

public void setDisplayLogMessage(String displayLogMessage)

toString

public String toString()
Overrides:
toString in class Object


Created 2011-07-14 13:27 EST