Package org.jboss.threads

Examples of org.jboss.threads.QueuelessExecutor


        return handoffExecutorValue;
    }

    public synchronized void setMaxThreads(int maxThreads) {
        this.maxThreads = maxThreads;
        final QueuelessExecutor executor = this.executor;
        if(executor != null) {
            executor.setMaxThreads(maxThreads);
        }
    }
View Full Code Here


        }
    }

    public synchronized void setBlocking(boolean blocking) {
        this.blocking = blocking;
        final QueuelessExecutor executor = this.executor;
        if(executor != null) {
            executor.setBlocking(blocking);
        }
    }
View Full Code Here

        }
    }

    public synchronized void setKeepAlive(TimeSpec keepAliveSpec) {
        keepAlive = keepAliveSpec;
        final QueuelessExecutor executor = this.executor;
        if(executor != null) {
            long keepAlive = keepAliveSpec == null ? Long.MAX_VALUE : keepAliveSpec.getDuration();
            executor.setKeepAliveTime(keepAlive);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.threads.QueuelessExecutor

Copyright © 2018 www.massapicom. 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.