KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > terracotta > session > SessionId


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.terracotta.session;
5
6 import com.terracotta.session.util.Lock;
7
8
9 public interface SessionId {
10
11   /**
12    * @return requested session id unchanged
13    */

14   String JavaDoc getRequestedId();
15
16   /**
17    * @return session id that will be returned to the client browser. This might be diff from requestedSessionId and will
18    * contain key plus, potentially, server id
19    */

20   String JavaDoc getExternalId();
21
22   /**
23    * @return part of session id that serves as a constant key into collection of session objects; the OTHER parts of
24    * session id can change throughout session lifetime, this part must stay constant.
25    */

26   String JavaDoc getKey();
27
28   boolean isServerHop();
29
30   boolean isNew();
31
32   void getWriteLock();
33
34   boolean tryWriteLock();
35
36   void commitLock();
37
38   Lock getLock();
39 }
40
Popular Tags