예제 #1
0
 @Override
 public void decodeRest(HornetQBuffer buffer) {
   super.decodeRest(buffer);
   handler = buffer.readSimpleString();
   voteBuffer = buffer.readSlice(buffer.readableBytes());
 }
예제 #2
0
 @Override
 public void encodeRest(HornetQBuffer buffer) {
   super.encodeRest(buffer);
   buffer.writeSimpleString(handler);
   vote.encode(buffer);
 }