return message.getMessage();
}
@Override
protected WriteMessage wrapMessage(Object msg, Future<Boolean> writeFuture) {
WriteMessage message = new WriteMessageImpl(msg,
(FutureImpl<Boolean>) writeFuture);
if (message.getWriteBuffer() == null) {
message.setWriteBuffer(encoder.encode(message.getMessage(), this));
}
return message;
}