|
JIVE Platform Release 0.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bsu.cs.jive.util.ThreadIDFactory
public final class ThreadIDFactory
A factory class for thread identifiers. The default thread factory caches thread objects for reuse, using their immutable identification numbers as keys.
Method Summary | |
---|---|
ThreadID |
create(long id,
String name)
Get a threadID object. |
ThreadID |
create(ThreadID.Importer importer)
Get a threadID object. |
static ThreadIDFactory |
instance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ThreadIDFactory instance()
public ThreadID create(long id, String name)
id
- the thread identifier (immutable)name
- a label for the thread (mutable)
public final ThreadID create(ThreadID.Importer importer)
importer
-
create(long, String)
|
JIVE Platform Release 0.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |