|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.TimeoutPolicy
This provides a convenient base class from which other timeout policies can be easily derived.
Constructor Summary | |
TimeoutPolicy()
|
Method Summary | |
abstract int |
calculateTimeout(int timeout,
int retries)
This method should calculate the timeout value and return it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeoutPolicy()
Method Detail |
public abstract 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 |