code: public String getWorkerGcParameter(LocalAssignment assignment,
                                         Map totalConf,
                                         String topologyId,
                                         Integer port) {
  
          StringBuilder commandSB = new StringBuilder();
          GcStrategy gcStrategy = GcStrategyManager.getGcStrategy(totalConf);
          return gcStrategy.toString();
      }
docs: Get worker's JVM gc setting