Esempio n. 1
0
 @Override
 public void readMarshallable(@NotNull WireIn wire) throws IllegalStateException {
   wire.read(() -> "wireType").asEnum(WireType.class, wt -> wireType = wt);
   wire.read(() -> "port").int32(this, (o, i) -> o.port = i);
   wire.read(() -> "logTCPMessages")
       .asEnum(YamlLogging.YamlLoggingLevel.class, this, (o, b) -> o.logTCPMessages = b);
   wire.read(() -> "heartbeatIntervalTicks").int32(this, (o, i) -> o.heartbeatIntervalTicks = i);
   wire.read(() -> "heartbeatIntervalTimeout")
       .int32(this, (o, i) -> o.heartbeatIntervalTimeout = i);
 }
 @Override
 public void readMarshallable(@NotNull WireIn wire) throws IORuntimeException {
   wire.read(() -> "text")
       .text(this, (t, v) -> t.text = v)
       .read(() -> "wireType")
       .object(WireType.class, this, (t, v) -> t.wireType = v)
       .read(() -> "listA")
       .sequence(
           this,
           (t, v) -> {
             t.clearListA();
             while (v.hasNextSequenceItem()) v.marshallable(addListA());
             Thread.yield();
           })
       .read(() -> "listB")
       .sequence(
           this,
           (t, v) -> {
             t.clearListB();
             while (v.hasNextSequenceItem()) v.marshallable(addListB());
           });
 }
Esempio n. 3
0
 @Override
 public void readMarshallable(WireIn wireIn) throws IllegalStateException {
   this.type = OperationType.valueOf(wireIn.read(() -> "type").text());
   this.wrapped = wireIn.read(() -> "wrapped").object(Object.class);
 }
 @Override
 public void readMarshallable(@NotNull WireIn wire) {
   wire.read(() -> "262").text(text);
 }