Package java.util.concurrent

Examples of java.util.concurrent.ScheduledThreadPoolExecutor.purge()


                1, new DefaultThreadFactory(name));
       
        Runnable task = new Runnable() {
            @Override
            public void run() {
                executor.purge();
            }
        };
       
        executor.scheduleWithFixedDelay(task,
                PURGE, PURGE, TimeUnit.MILLISECONDS);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.