|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TimeoutModel
The TimeoutModel is the common interface for all models
of timing out a SNMP request. The default model is a linear model, thus
each retry has the same delay as specified by the Target.getTimeout()
value.
| Method Summary | |
|---|---|
long |
getRequestTimeout(int totalNumberOfRetries,
long targetTimeout)
Gets the timeout for all retries, which is defined as the sum of getRetryTimeout(int retryCount, int totalNumberOfRetries,
long targetTimeout)
for all retryCount in
0 <= retryCount < totalNumberOfRetries. |
long |
getRetryTimeout(int retryCount,
int totalNumberOfRetries,
long targetTimeout)
Gets the timeout for the specified retry (a zero value for retryCount specifies the first request). |
| Method Detail |
|---|
long getRetryTimeout(int retryCount,
int totalNumberOfRetries,
long targetTimeout)
retryCount specifies the first request).
retryCount - the number of retries already performed for the target.totalNumberOfRetries - the total number of retries configured for the target.targetTimeout - the timeout as specified for the target in milliseconds.
long getRequestTimeout(int totalNumberOfRetries,
long targetTimeout)
getRetryTimeout(int retryCount, int totalNumberOfRetries,
long targetTimeout)
for all retryCount in
0 <= retryCount < totalNumberOfRetries.
totalNumberOfRetries - the total number of retries configured for the target.targetTimeout - the timeout as specified for the target in milliseconds.
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||