|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.TimeoutPolicy
|
+--com.adventnet.snmp.snmp2.ExponentialTimeoutPolicy
| Constructor Summary | |
(package private) |
ExponentialTimeoutPolicy()
|
| Method Summary | |
int |
calculateTimeout(int timeout,
int retries)
This method should calculate the timeout value and return it. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
ExponentialTimeoutPolicy()
| Method Detail |
public int calculateTimeout(int timeout,
int retries)
Here is a better explanation:
For example, if the timeout value is 5000 milliSeconds and the retries
value is 3, then this method will be called with the following values.
calculateTimeout(5000, 0) -- this should return the timeout for the actual request that is sent
calculateTimeout(5000, 1) -- this should return the timeout for the first re-try
calculateTimeout(5000, 2) -- this should return the timeout for the second re-try
calculateTimeout(5000, 3) -- this should return the timeout for the third re-try
timeout - this is the timeout value ( in milliSeconds ) that
is set on the pdu.retries - this denotes the request that is sent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||