@Override
  protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException {
    super.serializeStateData(serializer);
    CloseTableRegionsProcedureStateData data = CloseTableRegionsProcedureStateData.newBuilder()
      .setTableName(ProtobufUtil.toProtoTableName(tableName)).build();
    serializer.serialize(data);
  }
Procedure for closing all regions for a table.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CloseTableRegionsProcedure.java