com.tc.object.locks
Class ThreadID

java.lang.Object
  extended by com.tc.util.AbstractIdentifier
      extended by 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

Field Summary
static ThreadID NULL_ID
          Null identifier
static ThreadID VM_ID
          VM identifier
 
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 com.tc.util.AbstractIdentifier
compareTo, equals, hashCode, isNull, toLong
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_ID

public static final ThreadID NULL_ID
Null identifier


VM_ID

public static final ThreadID VM_ID
VM identifier

Constructor Detail

ThreadID

public ThreadID(long id)
New thread id

Parameters:
id - Identifier

ThreadID

public ThreadID(long id,
                java.lang.String name)
Method Detail

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.