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.session;
05:
06: import com.tc.util.AbstractIdentifier;
07:
08: /**
09: * Session identifier
10: */
11: public class SessionID extends AbstractIdentifier {
12:
13: /**
14: * Represents no session (id=-1)
15: */
16: public static final SessionID NULL_ID = new SessionID(-1);
17:
18: /**
19: * Create new session with specified identifier
20: * @param id Id value
21: */
22: public SessionID(long id) {
23: super (id);
24: }
25:
26: public String getIdentifierType() {
27: return "SessionID";
28: }
29:
30: }
|