public static TableDescriptor createReplicationQueueTableDescriptor(TableName tableName)
    throws IOException {
    return TableDescriptorBuilder.newBuilder(tableName)
      .setColumnFamily(ColumnFamilyDescriptorBuilder.of(TableReplicationQueueStorage.QUEUE_FAMILY))
      .setColumnFamily(
        ColumnFamilyDescriptorBuilder.of(TableReplicationQueueStorage.LAST_SEQUENCE_ID_FAMILY))
      .setColumnFamily(
        ColumnFamilyDescriptorBuilder.of(TableReplicationQueueStorage.HFILE_REF_FAMILY))
      .setValue("hbase.regionserver.region.split_restriction.type", "DelimitedKeyPrefix")
      .setValue("hbase.regionserver.region.split_restriction.delimiter", "-")
      .setCoprocessor(CoprocessorDescriptorBuilder
        .newBuilder("org.apache.hadoop.hbase.coprocessor.MultiRowMutationEndpoint")
        .setPriority(Coprocessor.PRIORITY_SYSTEM).build())
      .build();
  }
Used to create replication storage(peer, queue) classes.
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationStorageFactory.java