Here you can find the source of clearPreloadThreads()
public static void clearPreloadThreads()
//package com.java2s; //License from project: LGPL import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Main { private static ExecutorService executorService = Executors.newCachedThreadPool(); public static void clearPreloadThreads() { executorService.shutdown();//from w w w . j a v a 2 s.c o m executorService = Executors.newCachedThreadPool(); } }