com.h3c.util.snmp.command

## Interface CommandProcessor<I,E>

- Type Parameters:
    `I` - Type of the command identity.
    `E` - Type of the error descriptor.
  All Known Implementing Classes:
    SnmpCommandProcessor

      public interface CommandProcessor<I,E>

  Command processor.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `endSession()` Terminates the session.
    `void` | `executeAsynchronously(List<Command<I>> commands, CommandExecutionListener<I,E> commandExecutionListener)` Asynchronously executes commands.
    `Result<Void,E,Void>` | `executeSynchronously(List<Command<I>> commands, Long timeout)` Synchronously executes commands.

- - ### Method Detail

    - #### executeSynchronously

          Result<Void,E,Void> executeSynchronously(List<Command<I>> commands,
                                                 Long timeout)

      Synchronously executes commands.
      Parameters:
        `commands` - Commands to execute.
        `timeout` - Timeout, null to wait until the response is received.
      Returns:
        Execution result.

    - #### executeAsynchronously

          void executeAsynchronously(List<Command<I>> commands,
                                   CommandExecutionListener<I,E> commandExecutionListener)

      Asynchronously executes commands.
      Parameters:
        `commands` - Commands to execute.
        `commandExecutionListener` - Entity to notify execution state.

    - #### endSession

          void endSession()

      Terminates the session.

Copyright © 2014. All Rights Reserved.