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