}
@Override
protected BinaryVersionedValue executeOperation(Transport transport) {
short status = sendKeyOperation(key, transport, GET_WITH_VERSION, GET_WITH_VERSION_RESPONSE);
BinaryVersionedValue result = null;
if (status == KEY_DOES_NOT_EXIST_STATUS) {
result = null;
} else if (status == NO_ERROR_STATUS) {
long version = transport.readLong();
if (log.isTraceEnabled()) {
log.tracef("Received version: %d", version);
}
byte[] value = transport.readArray();
result = new BinaryVersionedValue(version, value);
}
return result;
}