Package net.socialgamer.cah.Constants

Examples of net.socialgamer.cah.Constants.DisconnectReason


    final Map<User, DisconnectReason> removedUsers = new HashMap<User, DisconnectReason>();
    synchronized (users) {
      final Iterator<User> iterator = users.values().iterator();
      while (iterator.hasNext()) {
        final User u = iterator.next();
        DisconnectReason reason = null;
        if (System.nanoTime() - u.getLastHeardFrom() > PING_TIMEOUT) {
          reason = DisconnectReason.PING_TIMEOUT;
        }
        else if (!u.isAdmin() && System.nanoTime() - u.getLastUserAction() > IDLE_TIMEOUT) {
          reason = DisconnectReason.IDLE_TIMEOUT;
View Full Code Here

TOP

Related Classes of net.socialgamer.cah.Constants.DisconnectReason

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.