public void shutdown(long timeout,TimeUnit unit) throws InterruptedException {
  executor.shutdown();
  executor.awaitTermination(timeout,unit);
}

public void shutdown ( long timeout , TimeUnit unit ) throws InterruptedException { executor . shutdown ( ) ; executor . awaitTermination ( timeout , unit ) ; }
shuts down the reporter polling , waiting the specific amount of time for any current polls to complete .
