org.jogre.server
Class Connection

java.lang.Object
  |
  +--org.jogre.server.Connection

public class Connection
extends Object

Connection class which holds a link to a ServerConnectionThread, lastAccessTime etc.

Version:
Alpha 0.1
Author:
Bob Marks

Constructor Summary
Connection(ServerConnectionThread connectionThread)
          Constructor which takes a ServerConnectionThread as a parameter.
 
Method Summary
 long getLastAccessTime()
          Return the last access time of this ServerConnectionThread.
 ServerConnectionThread getServerConnectionThread()
           
 void updateLastAccessTime()
          This method sets the lastAccessTime to the current time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(ServerConnectionThread connectionThread)
Constructor which takes a ServerConnectionThread as a parameter.
Parameters:
connectionThread - ServerConnectionThread object.
Method Detail

updateLastAccessTime

public void updateLastAccessTime()
This method sets the lastAccessTime to the current time. This method should be called whenever a user does some activity.

getServerConnectionThread

public ServerConnectionThread getServerConnectionThread()

getLastAccessTime

public long getLastAccessTime()
Return the last access time of this ServerConnectionThread.
Returns: