com.tc.object.locks
Class ThreadID
java.lang.Object
com.tc.util.AbstractIdentifier
com.tc.object.locks.ThreadID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class ThreadID
- extends AbstractIdentifier
Thread identifier
- See Also:
- Serialized Form
Constructor Summary |
ThreadID(long id)
New thread id |
ThreadID(long id,
java.lang.String name)
|
Method Summary |
java.lang.String |
getIdentifierType()
Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NULL_ID
public static final ThreadID NULL_ID
- Null identifier
VM_ID
public static final ThreadID VM_ID
- VM identifier
ThreadID
public ThreadID(long id)
- New thread id
- Parameters:
id
- Identifier
ThreadID
public ThreadID(long id,
java.lang.String name)
getIdentifierType
public java.lang.String getIdentifierType()
- Description copied from class:
AbstractIdentifier
- Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string. The type
is used in printing toString().
- Specified by:
getIdentifierType
in class AbstractIdentifier
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractIdentifier
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.