com.h3c.util.snmp

## Interface SnmpRequestListener

-     public interface SnmpRequestListener

  SNMP request listener interface.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onError(SnmpRequest request)` Called for a failed request.
    `void` | `onSuccess(SnmpRequest request)` Called for a successfully completed request.

- - ### Method Detail

    - #### onSuccess

          void onSuccess(SnmpRequest request)

      Called for a successfully completed request. Use `SnmpRequest.getResponse()` to access the response.
      Parameters:
        `request` - original SNMP request

    - #### onError

          void onError(SnmpRequest request)

      Called for a failed request. There are many ways the request could have failed. If the request failed going out `SnmpRequest.getError()` will be set. If there was a problem with the response `SnmpResponse.getError()` will be set.
      Parameters:
        `request` - original SNMP request

Copyright © 2014. All Rights Reserved.