@Override public void readObject(BufferInput<?> buffer, Serializer serializer) { status = Status.forId(buffer.readByte()); if (status == Status.OK) { error = null; } else if (buffer.readBoolean()) { error = RaftError.forId(buffer.readByte()); } version = buffer.readLong(); }
@Override public void readObject(BufferInput buffer, Alleycat alleycat) { status = Status.forId(buffer.readByte()); if (status == Status.OK) { error = null; version = buffer.readLong(); result = alleycat.readObject(buffer); } else { error = RaftError.forId(buffer.readByte()); } }
@Override public void readObject(BufferInput buffer, Alleycat alleycat) { status = Status.forId(buffer.readByte()); if (status == Status.OK) { error = null; term = buffer.readLong(); leader = buffer.readInt(); session = buffer.readLong(); members = alleycat.readObject(buffer); } else { error = RaftError.forId(buffer.readByte()); } }
@Override public void readObject(BufferInput<?> buffer, Serializer serializer) { status = Status.forId(buffer.readByte()); if (status == Status.OK) { error = null; session = buffer.readLong(); timeout = buffer.readLong(); members = serializer.readObject(buffer); } else { error = RaftError.forId(buffer.readByte()); session = 0; members = null; } }