Package com.caucho.network.listen

Examples of com.caucho.network.listen.AbstractSelectManager


  /**
   * Stops the server.
   */
  public void stop()
  {
    AbstractSelectManager manager = _selectManager;
    _selectManager = null;

    if (manager != null)
      manager.stop();
  }
View Full Code Here


  /**
   * Returns the number of select keepalives available.
   */
  public int getFreeKeepaliveSelect()
  {
    AbstractSelectManager selectManager = getSelectManager();

    if (selectManager != null)
      return selectManager.getFreeKeepalive();
    else
      return Integer.MAX_VALUE / 2;
  }
View Full Code Here

  /**
   * Returns the select keepalive count.
   */
  public int getKeepaliveSelectCount()
  {
    AbstractSelectManager selectManager = getSelectManager();

    if (selectManager != null)
      return selectManager.getSelectCount();
    else
      return -1;
  }
View Full Code Here

      return null;
  }

  public boolean isSelectManagerEnabled()
  {
    AbstractSelectManager manager = _server.getSelectManager();

    return manager != null;
  }
View Full Code Here

TOP

Related Classes of com.caucho.network.listen.AbstractSelectManager

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.