org.apache.curator.utils
Class ThreadUtils

java.lang.Object
  extended by org.apache.curator.utils.ThreadUtils

public class ThreadUtils
extends Object


Constructor Summary
ThreadUtils()
           
 
Method Summary
static String getProcessName(Class<?> clazz)
           
static ExecutorService newFixedThreadPool(int qty, String processName)
           
static ScheduledExecutorService newFixedThreadScheduledPool(int qty, String processName)
           
static ExecutorService newSingleThreadExecutor(String processName)
           
static ScheduledExecutorService newSingleThreadScheduledExecutor(String processName)
           
static ThreadFactory newThreadFactory(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 ExecutorService newSingleThreadExecutor(String processName)

newFixedThreadPool

public static ExecutorService newFixedThreadPool(int qty,
                                                 String processName)

newSingleThreadScheduledExecutor

public static ScheduledExecutorService newSingleThreadScheduledExecutor(String processName)

newFixedThreadScheduledPool

public static ScheduledExecutorService newFixedThreadScheduledPool(int qty,
                                                                   String processName)

newThreadFactory

public static ThreadFactory newThreadFactory(String processName)

getProcessName

public static String getProcessName(Class<?> clazz)


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.