Code example for ScheduledExecutorService

Methods: schedule

0
    } // killTAS 
  } // RestartRunnable 
 
 
  public void killTasWithTimeout(final int delay, final Context context) {
    executorService.schedule(new RestartRunnable(context), delay, TimeUnit.SECONDS);
  } // killTasWithTimeout 
 
 
  private ProcessUtils() { 
  } // ProcessUtils 
 
 
  public static ProcessUtils getInstance() { 
    if (instance == null) {
      instance = new ProcessUtils();
    } // if 
    return instance;
  } // getInstance 
 
}