com.netflix.curator.utils
Class ThreadUtils

java.lang.Object
  extended by com.netflix.curator.utils.ThreadUtils

public class ThreadUtils
extends java.lang.Object


Constructor Summary
ThreadUtils()
           
 
Method Summary
static java.util.concurrent.ExecutorService newFixedThreadPool(int qty, java.lang.String processName)
           
static java.util.concurrent.ScheduledExecutorService newFixedThreadScheduledPool(int qty, java.lang.String processName)
           
static java.util.concurrent.ExecutorService newSingleThreadExecutor(java.lang.String processName)
           
static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.lang.String processName)
           
static java.util.concurrent.ThreadFactory newThreadFactory(java.lang.String processName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtils

public ThreadUtils()
Method Detail

newSingleThreadExecutor

public static java.util.concurrent.ExecutorService newSingleThreadExecutor(java.lang.String processName)

newFixedThreadPool

public static java.util.concurrent.ExecutorService newFixedThreadPool(int qty,
                                                                      java.lang.String processName)

newSingleThreadScheduledExecutor

public static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.lang.String processName)

newFixedThreadScheduledPool

public static java.util.concurrent.ScheduledExecutorService newFixedThreadScheduledPool(int qty,
                                                                                        java.lang.String processName)

newThreadFactory

public static java.util.concurrent.ThreadFactory newThreadFactory(java.lang.String processName)