Server
Class SessionWrapper

java.lang.Object
  |
  +--Server.SessionWrapper

public class SessionWrapper
extends java.lang.Object

A thread class responsible for all of the delivery opeartions on the associated session


Field Summary
private  Session session
          The cloned session instance associated with this session thread
 
Constructor Summary
(package private) SessionWrapper(Session session)
          Construct a new object by synchronizing a new object
 
Method Summary
 void newMessage(SocketThread socketThread, java.lang.String msg)
          Send a new message to all members of this session
 void synchronizeSession(Session session)
          Clone the local session to match a given session
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

session

private Session session
The cloned session instance associated with this session thread
Constructor Detail

SessionWrapper

SessionWrapper(Session session)
Construct a new object by synchronizing a new object
Parameters:
session - The session to synchronize
Method Detail

synchronizeSession

public final void synchronizeSession(Session session)
Clone the local session to match a given session
Parameters:
session - The session to clone

newMessage

public final void newMessage(SocketThread socketThread,
                             java.lang.String msg)
Send a new message to all members of this session
Parameters:
socketThread - The sending socket thread
msg - The message to send