com.tibbo.aggregate.common.communication

## Interface CommandWriter<C extends Command>

- All Known Implementing Classes:
    CompressedCommandWriter, DefaultCommandWriter

      public interface CommandWriter<C extends Command>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setVersion(ProtocolVersion version)`
    `void` | `setVersionAfterNextWrite(ProtocolVersion version)`
    `default void` | `write(C command, BlockingChannel channel)`
    `void` | `write(C command, BlockingChannel channel, boolean needsFlushing)`

- - ### Method Detail

    - #### write

          default void write(C command,
                             BlockingChannel channel)
                      throws java.io.IOException,
                             DisconnectionException

      Throws:
        `java.io.IOException`
        `DisconnectionException`

    - #### write

          void write(C command,
                     BlockingChannel channel,
                     boolean needsFlushing)
              throws java.io.IOException,
                     DisconnectionException

      Throws:
        `java.io.IOException`
        `DisconnectionException`

    - #### setVersion

          void setVersion(ProtocolVersion version)

    - #### setVersionAfterNextWrite

          void setVersionAfterNextWrite(ProtocolVersion version)