|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.UserManager
public final class UserManager
A class that manages the list of users connected to the engine.
This class is thread safe, however it is recommended that the callee should synchronize over this object when inspecting a subset of the user list. The reason being that a user can connect or disconnect at any time.
Method Summary | |
---|---|
User |
userAt(int n)
Returns the User object at index 'n' in the manager where 0 is the first user. |
int |
userCount()
Returns the number of users that are logged in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int userCount()
public User userAt(int n)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |