Package org.apache.uima.aae.error
Class Threshold
- java.lang.Object
-
- org.apache.uima.aae.error.Threshold
-
public class Threshold extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Threshold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexceeded(long value)booleanexceededWindow(long casCount)java.lang.StringgetAction()booleangetContinueOnRetryFailure()intgetMaxRetries()longgetThreshold()longgetWindow()Thresholdinitialize()booleanmaxRetriesExceeded(long value)voidsetAction(java.lang.String action)voidsetContinueOnRetryFailure(boolean continueOnRetryFailure)voidsetMaxRetries(int maxRetries)voidsetThreshold(long aCount)voidsetWindow(long aWindow)
-
-
-
Method Detail
-
getWindow
public long getWindow()
-
setWindow
public void setWindow(long aWindow)
-
getThreshold
public long getThreshold()
-
setThreshold
public void setThreshold(long aCount)
-
initialize
public Threshold initialize()
-
exceeded
public boolean exceeded(long value)
-
exceededWindow
public boolean exceededWindow(long casCount)
-
maxRetriesExceeded
public boolean maxRetriesExceeded(long value)
-
getMaxRetries
public int getMaxRetries()
-
setMaxRetries
public void setMaxRetries(int maxRetries)
-
getContinueOnRetryFailure
public boolean getContinueOnRetryFailure()
-
setContinueOnRetryFailure
public void setContinueOnRetryFailure(boolean continueOnRetryFailure)
-
getAction
public java.lang.String getAction()
-
setAction
public void setAction(java.lang.String action)
-
-