-
public interface SnmpUriCallbackTheSnmpUriCallbackinterface is used by asynchronous methods of theSnmpURIclass to provide instances ofSnmpUriResponseto the caller.- Since:
- 2.1
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonResponse(SnmpUriResponse response, java.net.URI url, java.lang.Object userObject)Process a response on the request
-
-
-
Method Detail
-
onResponse
boolean onResponse(SnmpUriResponse response, java.net.URI url, java.lang.Object userObject)
Process a response on the request- Parameters:
response- aSnmpUriResponseinstance with some or all of the requested data or an error status. If theSnmpUriResponse.getResponseType()isSnmpUriResponse.Type.NEXTthen additional calls for this request will follow, otherwise not.url- the URI that was used as request for this response.userObject- an arbitrary object provided on the asynchronous call on the request processor.- Returns:
trueif the request should be cancelled,falseotherwise.
-
-