public final class UserManager extends Object
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.
Modifier and Type | Method and Description |
---|---|
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.
|
public int userCount()
public User userAt(int n)
Copyright © 2015. All rights reserved.