org.apache.hadoop.hbase.util
Class Threads
java.lang.Object
org.apache.hadoop.hbase.util.Threads
public class Threads
- extends Object
Thread Utility
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
Threads
public Threads()
setDaemonThreadRunning
public static Thread setDaemonThreadRunning(Thread t,
String name)
- Utility method that sets name, daemon status and starts passed thread.
- Parameters:
t
- name
-
- Returns:
- Returns the passed Thread
t
.
setDaemonThreadRunning
public static Thread setDaemonThreadRunning(Thread t,
String name,
Thread.UncaughtExceptionHandler handler)
- Utility method that sets name, daemon status and starts passed thread.
- Parameters:
t
- name
- handler
- A handler to set on the thread. Pass null if want to
use default handler.
- Returns:
- Returns the passed Thread
t
.
Copyright © 2008 The Apache Software Foundation