Code example for ExecutorService

Methods: shutdownNow

0
     * 
     * @see #stop() 
     * @see #isRunning() 
     * @see WindowManagerService#startViewServer(int) 
     */ 
    public boolean start() throws IOException { 
        if (mThread != null) {
            return false; 
        } 
 
        mThread = new Thread(this, "Local View Server [port=" + mPort + "]");
        mThreadPool = Executors.newFixedThreadPool(VIEW_SERVER_MAX_CONNECTIONS);
        mThread.start();
 
        return true; 
    } 
 
    /** 
     * Stops the server. 
     * 
     * @return True if the server was stopped, false if an error occurred or if the