public static AppendLogEntryReplyProto toAppendLogReplyProto()

in ratis-logservice/src/main/java/org/apache/ratis/logservice/util/LogServiceProtoUtil.java [234:244]


  public static AppendLogEntryReplyProto toAppendLogReplyProto(List<Long> ids, Throwable t) {
    AppendLogEntryReplyProto.Builder builder = AppendLogEntryReplyProto.newBuilder();
    if (t != null) {
      builder.setException(toLogException(t));
    } else if (ids != null) {
      for (long id: ids) {
        builder.addRecordId(id);
      }
    }
    return builder.build();
  }