}
};
}
public ProtocolDecoder getDecoder(IoSession session) throws Exception {
return new ProtocolDecoderAdapter() {
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception {
if (in.remaining() >= 4) {
int value = in.getInt();
logger.info("decode");
out.write(value);