Exemplo n.º 1
0
 @Override
 public void readObject(BufferInput buffer, Serializer serializer) {
   super.readObject(buffer, serializer);
   mode = PersistenceMode.values()[buffer.readByte()];
   ttl = buffer.readLong();
 }
Exemplo n.º 2
0
 @Override
 public void writeObject(BufferOutput buffer, Serializer serializer) {
   super.writeObject(buffer, serializer);
   buffer.writeByte(mode.ordinal()).writeLong(ttl);
 }