|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.lexorank.BackoffHandler
public class BackoffHandler
The backoff handler implements a backoff mechanism to relieve DB contention, where multiple threads and nodes are trying to modify the DB for the same issues.
Constructor Summary | |
---|---|
BackoffHandler(LexoRankStatisticsAgent lexoRankStatisticsAgent,
long timeoutTime)
Create a new instance of the handler. |
Method Summary | |
---|---|
void |
maybeWait()
At the beginning of each retry, the DB operation must call this function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackoffHandler(LexoRankStatisticsAgent lexoRankStatisticsAgent, long timeoutTime)
timeoutTime
- is the time when the DB operation is expected to time out.Method Detail |
---|
public void maybeWait()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |