Code example for ScheduledExecutorService

Methods: shutdownNow

0
 
    @Override 
    public void onDestroy() 
    { 
        // Stop the ScheduledExecutorService 
        executor.shutdownNow();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java