public class Threshold extends Object
Constructor and Description |
---|
Threshold() |
Modifier and Type | Method and Description |
---|---|
boolean |
exceeded(long value) |
boolean |
exceededWindow(long casCount) |
String |
getAction() |
boolean |
getContinueOnRetryFailure() |
int |
getMaxRetries() |
long |
getThreshold() |
long |
getWindow() |
Threshold |
initialize() |
boolean |
maxRetriesExceeded(long value) |
void |
setAction(String action) |
void |
setContinueOnRetryFailure(boolean continueOnRetryFailure) |
void |
setMaxRetries(int maxRetries) |
void |
setThreshold(long aCount) |
void |
setWindow(long aWindow) |
public long getWindow()
public void setWindow(long aWindow)
public long getThreshold()
public void setThreshold(long aCount)
public Threshold initialize()
public boolean exceeded(long value)
public boolean exceededWindow(long casCount)
public boolean maxRetriesExceeded(long value)
public int getMaxRetries()
public void setMaxRetries(int maxRetries)
public boolean getContinueOnRetryFailure()
public void setContinueOnRetryFailure(boolean continueOnRetryFailure)
public String getAction()
public void setAction(String action)
Copyright © 2017. All rights reserved.