01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.lockmanager.api;
05:
06: import com.tc.util.AbstractIdentifier;
07:
08: /**
09: * Thread identifier
10: */
11: public class ThreadID extends AbstractIdentifier {
12:
13: /** Null identifier */
14: public static final ThreadID NULL_ID = new ThreadID();
15: /** VM identifier */
16: public static final ThreadID VM_ID = new ThreadID(Long.MIN_VALUE);
17:
18: /**
19: * New thread id
20: * @param id Identifier
21: */
22: public ThreadID(long id) {
23: super (id);
24: }
25:
26: private ThreadID() {
27: super ();
28: }
29:
30: public String getIdentifierType() {
31: return "ThreadID";
32: }
33:
34: }
|