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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connection
public Connection(ServerConnectionThread connectionThread)
- Constructor which takes a ServerConnectionThread as a parameter.
- Parameters:
connectionThread
- ServerConnectionThread object.
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:
-