Beispiel #1
0
 @Override
 public void writeObject(BufferOutput buffer, Serializer serializer) {
   super.writeObject(buffer, serializer);
   serializer.writeObject(value, buffer);
 }
Beispiel #2
0
 @Override
 public void readObject(BufferInput buffer, Serializer serializer) {
   super.readObject(buffer, serializer);
   value = serializer.readObject(buffer);
 }
Beispiel #3
0
 public LocalClient(UUID id, LocalServerRegistry registry, Serializer serializer) {
   this.id = id;
   this.registry = registry;
   this.context = new SingleThreadContext("test-" + id.toString(), serializer.clone());
 }