[ create a new paste ] login | about

Link: http://codepad.org/ACPtbgo5    [ raw code | fork ]

Plain Text, pasted on Mar 12:
1
2
3
4
5
6
7
8
9
10
11
12
   public void execute(Runnable command) {
        if (command == null)
            throw new NullPointerException();
        if (poolSize >= corePoolSize || !addIfUnderCorePoolSize(command)) {
            if (runState == RUNNING && workQueue.offer(command)) {
                if (runState != RUNNING || poolSize == 0)
                    ensureQueuedTaskHandled(command);
            }
            else if (!addIfUnderMaximumPoolSize(command))
                reject(command); // is shutdown or saturated
        }
    }


Create a new paste based on this one


Comments: