public interface CommandWriter<C extends Command>
| 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) |
default void write(C command, BlockingChannel channel) throws java.io.IOException, DisconnectionException
java.io.IOExceptionDisconnectionExceptionvoid write(C command, BlockingChannel channel, boolean needsFlushing) throws java.io.IOException, DisconnectionException
java.io.IOExceptionDisconnectionExceptionvoid setVersion(ProtocolVersion version)
void setVersionAfterNextWrite(ProtocolVersion version)