public static TransportConfiguration decode(HornetQBuffer buffer) {
   String name = BufferHelper.readNullableSimpleStringAsString(buffer);
   String factoryClassName = buffer.readSimpleString().toString();
   int paramSize = buffer.readInt();
   Map<String, Object> params = new HashMap<String, Object>();
   for (int i = 0; i < paramSize; i++) {
     String key = buffer.readSimpleString().toString();
     String value = buffer.readSimpleString().toString();
     params.put(key, value);
   }
   TransportConfiguration config = new TransportConfiguration(factoryClassName, params, name);
   return config;
 }
Пример #2
0
 @Override
 public void decodeRest(final HornetQBuffer buffer) {
   queueName = buffer.readSimpleString();
 }
Пример #3
0
 @Override
 public void decodeRest(HornetQBuffer buffer) {
   super.decodeRest(buffer);
   handler = buffer.readSimpleString();
   voteBuffer = buffer.readSlice(buffer.readableBytes());
 }
 @Override
 public void decodeRest(final HornetQBuffer buffer) {
   credits = buffer.readInt();
   address = buffer.readSimpleString();
 }