Esempio n. 1
0
 @Override
 public void readObject(BufferInput buffer, Serializer serializer) {
   consistency = ConsistencyLevel.values()[buffer.readByte()];
 }
Esempio n. 2
0
 @Override
 public void writeObject(BufferOutput buffer, Serializer serializer) {
   buffer.writeByte(consistency.ordinal());
 }