Esempio n. 1
0
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeInt(sender);
   out.writeInt(eid);
   out.writeInt(type);
   out.writeInt(regency);
   out.writeInt(leader);
   out.writeObject(state);
   out.writeObject(view);
 }
Esempio n. 2
0
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    out.writeInt(request.serializedMessage.length);
    out.write(request.serializedMessage);
    out.writeBoolean(request.signed);

    if (request.signed) {
      out.writeInt(request.serializedMessageSignature.length);
      out.write(request.serializedMessageSignature);
    }
  }