01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.terracotta.session;
06:
07: public interface SessionId {
08:
09: /**
10: * @return requested session id unchanged
11: */
12: String getRequestedId();
13:
14: /**
15: * @return session id that will be returned to the client browser. This might be diff from requestedSessionId and will
16: * contain key plus, potentially, server id
17: */
18: String getExternalId();
19:
20: /**
21: * @return part of session id that serves as a constant key into collection of session objects; the OTHER parts of
22: * session id can change throughout session lifetime, this part must stay constant.
23: */
24: String getKey();
25:
26: boolean isServerHop();
27:
28: boolean isNew();
29:
30: void getWriteLock();
31:
32: boolean tryWriteLock();
33:
34: void commitLock();
35: }
|