com.h3c.util.snmp

## Interface ClientChannelEngine

-     public interface ClientChannelEngine

  Client channel engine interface. This provides an abstraction to the specific channel and threading implementation.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `ClientChannelEngine.Listener` Provides an interface for the notifications from the engine.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `MAX_REQUEST_SIZE`
    `static int` | `MAX_RESPONSE_SIZE`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setListener(ClientChannelEngine.Listener listener)` Allows the setting of the engine listener.
    `void` | `start()` Starts the engine.
    `void` | `stop()` Stops the engine.
    `void` | `write(SnmpRequest request)` Main entry point to write a SNMP message to an engine's channel.

- - ### Field Detail

    - #### MAX_REQUEST_SIZE

          static final int MAX_REQUEST_SIZE

      See Also:
        Constant Field Values

    - #### MAX_RESPONSE_SIZE

          static final int MAX_RESPONSE_SIZE

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### setListener

          void setListener(ClientChannelEngine.Listener listener)

      Allows the setting of the engine listener. All engine implementations need to save the listener.
      Parameters:
        `listener` - engine listener

    - #### start

          void start()

      Starts the engine.

    - #### stop

          void stop()

      Stops the engine. Engine implementations should shutdown all resources, worker threads, etc.

    - #### write

          void write(SnmpRequest request)

      Main entry point to write a SNMP message to an engine's channel.
      Parameters:
        `request` - SNMP request message

Copyright © 2014. All Rights Reserved.