org.logicalcobwebs.proxool
类 HouseKeeperController

java.lang.Object
  继承者 org.logicalcobwebs.proxool.HouseKeeperController

public class HouseKeeperController
extends Object

Schedules when to run the house keeper

从以下版本开始:
Proxool 0.8
版本:
$Revision: 1.6 $, $Date: 2006/01/18 14:40:01 $
作者:
bill, $Author: billhorsman $ (current maintainer)

构造方法摘要
HouseKeeperController()
           
 
方法摘要
protected static void cancel(String alias)
          cancel a house keeper for a pool.
protected static org.logicalcobwebs.proxool.HouseKeeper getHouseKeeperToRun()
          Get the next house keeper that needs to be run
protected static void register(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
          Schedule a regular triggerSweep
protected static void shutdown()
          Stop all house keeper threads.
protected static void sweepNow(String alias)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HouseKeeperController

public HouseKeeperController()
方法详细信息

getHouseKeeperToRun

protected static org.logicalcobwebs.proxool.HouseKeeper getHouseKeeperToRun()
Get the next house keeper that needs to be run

返回:
the house keeper to run, or null if there is nothing to do.

sweepNow

protected static void sweepNow(String alias)

register

protected static void register(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
Schedule a regular triggerSweep

参数:
connectionPool - identifies the pool

shutdown

protected static void shutdown()
Stop all house keeper threads.


cancel

protected static void cancel(String alias)
                      throws ProxoolException
cancel a house keeper for a pool. This doens't stop the house keeper thread.

参数:
alias - identifies the pool
抛出:
ProxoolException - if we couldn't find the house keeper (if it had already been cancelled for instance).


Copyright © 2014. All rights reserved.