public static ReplicationPeerConfigBuilder newBuilder() {
    return new ReplicationPeerConfigBuilderImpl();
  }
Use remote wal dir to decide whether a peer is sync replication peer
hbase-client/src/main/java/org/apache/hadoop/hbase/replication/ReplicationPeerConfig.java