org.snmp4j.uri
Interface SnmpUriCallback
public interface SnmpUriCallback
The SnmpUriCallback interface is used by asynchronous
methods of the SnmpURI class to provide instances of
SnmpUriResponse to the caller.
- Since:
- 2.1
- Author:
- Frank Fock
|
Method Summary |
boolean |
onResponse(SnmpUriResponse response,
java.net.URI url,
java.lang.Object userObject)
Process a response on the request |
onResponse
boolean onResponse(SnmpUriResponse response,
java.net.URI url,
java.lang.Object userObject)
- Process a response on the request
- Parameters:
response - a SnmpUriResponse instance with some or all
of the requested data or an error status.
If the SnmpUriResponse.getResponseType()
is SnmpUriResponse.Type.NEXT then
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:
true if the request should be cancelled,
false otherwise.
Copyright © 2012 SNMP4J.org. All Rights Reserved.