public class CompressedCommandWriter<C extends OutgoingAggreGateCommand> extends DefaultCommandWriter<C>
| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMAL_COMMAND_SIZE_TO_COMPRESS |
static byte |
TYPE_COMPRESSED |
static byte |
TYPE_RAW |
| Constructor and Description |
|---|
CompressedCommandWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
extractCommandBody(OutgoingAggreGateCommand command,
BlockingChannel channel) |
void |
setVersion(ProtocolVersion version) |
void |
setVersionAfterNextWrite(ProtocolVersion version) |
void |
write(C command,
BlockingChannel channel,
boolean needsFlushing) |
composeByteBuffer, log, writeBufferToChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic static final byte TYPE_RAW
public static final byte TYPE_COMPRESSED
public static final int MINIMAL_COMMAND_SIZE_TO_COMPRESS
public void write(C command, BlockingChannel channel, boolean needsFlushing) throws java.io.IOException, DisconnectionException
write in interface CommandWriter<C extends OutgoingAggreGateCommand>write in class DefaultCommandWriter<C extends OutgoingAggreGateCommand>java.io.IOExceptionDisconnectionExceptionprotected byte[] extractCommandBody(OutgoingAggreGateCommand command, BlockingChannel channel)
public void setVersion(ProtocolVersion version)
setVersion in interface CommandWriter<C extends OutgoingAggreGateCommand>setVersion in class DefaultCommandWriter<C extends OutgoingAggreGateCommand>public void setVersionAfterNextWrite(ProtocolVersion version)
setVersionAfterNextWrite in interface CommandWriter<C extends OutgoingAggreGateCommand>setVersionAfterNextWrite in class DefaultCommandWriter<C extends OutgoingAggreGateCommand>