Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.ThreadFactory


    }

    public ClockDaemon getClockDaemon() {
        if (clockDaemon == null) {
            clockDaemon = new ClockDaemon();
            clockDaemon.setThreadFactory(new ThreadFactory() {
                public Thread newThread(Runnable runnable) {
                    Thread thread = new Thread(runnable, "Checkpoint Timmer");
                    thread.setDaemon(true);
                    return thread;
                }
View Full Code Here


    this.fileManagerId = fileManagerId;
    this.sequenceGenerator = sequenceGenerator;
      this.file = logFile;   
      this.byteBufferPool = new ByteBufferPool();
    this.executor = new QueuedExecutor()
    this.executor.setThreadFactory(new ThreadFactory(){
      public Thread newThread(Runnable runnable) {
        Thread answer = new Thread(runnable, "Journal Writter");
        answer.setPriority(Thread.MAX_PRIORITY);
        answer.setDaemon(true);
        return answer;
View Full Code Here

        backgroundExecutor.setMinimumPoolSize(4);
        backgroundExecutor.setKeepAliveTime(1000 * 60 * 5);
        backgroundExecutor.waitWhenBlocked();
        backgroundExecutor.createThreads(9);

        backgroundExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable command)
            {
                Thread t = new Thread(command);
                t.setDaemon(false);
                t.setName("Background Execution Threads");
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.ThreadFactory

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.