FileDocCategorySizeDatePackage
ConnectionCacheBlockingBase.javaAPI DocExample3332Tue May 29 16:57:04 BST 2007com.sun.xml.ws.transport.tcp.connectioncache.impl.transport

ConnectionCacheBlockingBase

public abstract class ConnectionCacheBlockingBase extends ConnectionCacheBase

Fields Summary
protected int
totalBusy
protected int
totalIdle
Constructors Summary
ConnectionCacheBlockingBase(String cacheType, int highWaterMark, int numberToReclaim, Logger logger)

        
        super( cacheType, highWaterMark, numberToReclaim, logger ) ;
        
        this.totalBusy = 0 ;
        this.totalIdle = 0 ;
        
        this.reclaimableConnections =
                ConcurrentQueueFactory.<C>makeConcurrentQueue() ;
    
Methods Summary
public synchronized longnumberOfBusyConnections()

        return totalBusy ;
    
public synchronized longnumberOfConnections()

        return totalIdle + totalBusy ;
    
public synchronized longnumberOfIdleConnections()

        return totalIdle ;
    
public synchronized longnumberOfReclaimableConnections()

        return reclaimableConnections.size() ;