EAF 7.4 Implementation

com.lutris.appserver.server.sessionEnhydra
Class SessionThread

java.lang.Object
  extended by com.lutris.appserver.server.sessionEnhydra.SessionThread

public class SessionThread
extends java.lang.Object

Represents a combination of a thread and a session key. A session must be associated with a thread of execution before a reference to the session can be obtained by the application. This object represents the existing thread to session association.

Version:
$Revision: 1.2 $
Author:
Kyle Clark

Field Summary
 java.lang.String sessionKey
           
 java.lang.Thread thread
           
 
Constructor Summary
SessionThread(java.lang.Thread thread, java.lang.String sessionKey)
          Creates an instance of a session-thread association.
 
Method Summary
 boolean equals(java.lang.Object sessionThread)
          Compares equality of two objects.
 int hashCode()
          Returns the hashcode for this object.
 java.lang.String toString()
          Returns string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

thread

public java.lang.Thread thread

sessionKey

public java.lang.String sessionKey
Constructor Detail

SessionThread

public SessionThread(java.lang.Thread thread,
                     java.lang.String sessionKey)
Creates an instance of a session-thread association.

Parameters:
thread - the thread to associate with a session.
sessionKey - the session key.
Method Detail

equals

public boolean equals(java.lang.Object sessionThread)
Compares equality of two objects.

Overrides:
equals in class java.lang.Object
Parameters:
sessionThread - the reference object with which compare.

toString

public java.lang.String toString()
Returns string representation.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Returns the hashcode for this object.

Overrides:
hashCode in class java.lang.Object

EAF 7.4 Implementation