org.openrdf.http.object.threads
Class ManagedExecutors

java.lang.Object
  extended by org.openrdf.http.object.threads.ManagedExecutors

public class ManagedExecutors
extends Object

Common Executors used.

Author:
James Leigh

Method Summary
static Executor getEncoderThreadPool()
           
static Executor getParserThreadPool()
           
static ScheduledExecutorService getTimeoutThreadPool()
           
static Executor getWriterThreadPool()
           
static Executor newAntiDeadlockThreadPool(BlockingQueue<Runnable> queue, String name)
           
static Executor newAntiDeadlockThreadPool(int corePoolSize, int maximumPoolSize, BlockingQueue<Runnable> queue, String name)
           
static ExecutorService newCachedPool(String name)
           
static ScheduledExecutorService newSingleScheduler(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncoderThreadPool

public static Executor getEncoderThreadPool()

getParserThreadPool

public static Executor getParserThreadPool()

getWriterThreadPool

public static Executor getWriterThreadPool()

getTimeoutThreadPool

public static ScheduledExecutorService getTimeoutThreadPool()

newCachedPool

public static ExecutorService newCachedPool(String name)

newSingleScheduler

public static ScheduledExecutorService newSingleScheduler(String name)

newAntiDeadlockThreadPool

public static Executor newAntiDeadlockThreadPool(BlockingQueue<Runnable> queue,
                                                 String name)

newAntiDeadlockThreadPool

public static Executor newAntiDeadlockThreadPool(int corePoolSize,
                                                 int maximumPoolSize,
                                                 BlockingQueue<Runnable> queue,
                                                 String name)


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.