org.apache.geronimo.connector.outbound.connectionmanagerconfig
Class PartitionedPool

java.lang.Object
  extended byorg.apache.geronimo.connector.outbound.connectionmanagerconfig.PartitionedPool
All Implemented Interfaces:
PoolingAttributes, PoolingSupport, Serializable

public class PartitionedPool
extends Object
implements PoolingSupport

Version:
$Rev: 356022 $ $Date: 2005-12-11 21:58:34 +0100 (Sun, 11 Dec 2005) $
See Also:
Serialized Form

Constructor Summary
PartitionedPool(int maxSize, int minSize, int blockingTimeoutMilliseconds, int idleTimeoutMinutes, boolean matchOne, boolean matchAll, boolean selectOneAssumeMatch, boolean partitionByConnectionRequestInfo, boolean partitionBySubject)
           
 
Method Summary
 ConnectionInterceptor addPoolingInterceptors(ConnectionInterceptor tail)
           
 int getBlockingTimeoutMilliseconds()
           
 int getConnectionCount()
           
 int getIdleConnectionCount()
           
 int getIdleTimeoutMinutes()
           
 int getMaxSize()
           
 int getPartitionCount()
           
 int getPartitionMaxSize()
           
 int getPartitionMinSize()
           
 boolean isMatchAll()
           
 boolean isMatchOne()
           
 boolean isPartitionByConnectionRequestInfo()
           
 boolean isPartitionBySubject()
           
 boolean isSelectOneAssumeMatch()
           
 void setBlockingTimeoutMilliseconds(int blockingTimeoutMilliseconds)
           
 void setIdleTimeoutMinutes(int idleTimeoutMinutes)
           
 void setMatchAll(boolean matchAll)
           
 void setMatchOne(boolean matchOne)
           
 void setMaxSize(int maxSize)
           
 void setPartitionByConnectionRequestInfo(boolean partitionByConnectionRequestInfo)
           
 void setPartitionBySubject(boolean partitionBySubject)
           
 void setPartitionMaxSize(int maxSize)
           
 void setPartitionMinSize(int minSize)
           
 void setSelectOneAssumeMatch(boolean selectOneAssumeMatch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionedPool

public PartitionedPool(int maxSize,
                       int minSize,
                       int blockingTimeoutMilliseconds,
                       int idleTimeoutMinutes,
                       boolean matchOne,
                       boolean matchAll,
                       boolean selectOneAssumeMatch,
                       boolean partitionByConnectionRequestInfo,
                       boolean partitionBySubject)
Method Detail

isPartitionByConnectionRequestInfo

public boolean isPartitionByConnectionRequestInfo()

setPartitionByConnectionRequestInfo

public void setPartitionByConnectionRequestInfo(boolean partitionByConnectionRequestInfo)

isPartitionBySubject

public boolean isPartitionBySubject()

setPartitionBySubject

public void setPartitionBySubject(boolean partitionBySubject)

getMaxSize

public int getMaxSize()

setMaxSize

public void setMaxSize(int maxSize)

getBlockingTimeoutMilliseconds

public int getBlockingTimeoutMilliseconds()
Specified by:
getBlockingTimeoutMilliseconds in interface PoolingAttributes

setBlockingTimeoutMilliseconds

public void setBlockingTimeoutMilliseconds(int blockingTimeoutMilliseconds)
Specified by:
setBlockingTimeoutMilliseconds in interface PoolingAttributes

getIdleTimeoutMinutes

public int getIdleTimeoutMinutes()
Specified by:
getIdleTimeoutMinutes in interface PoolingAttributes

setIdleTimeoutMinutes

public void setIdleTimeoutMinutes(int idleTimeoutMinutes)
Specified by:
setIdleTimeoutMinutes in interface PoolingAttributes

isMatchOne

public boolean isMatchOne()

setMatchOne

public void setMatchOne(boolean matchOne)

isMatchAll

public boolean isMatchAll()

setMatchAll

public void setMatchAll(boolean matchAll)

isSelectOneAssumeMatch

public boolean isSelectOneAssumeMatch()

setSelectOneAssumeMatch

public void setSelectOneAssumeMatch(boolean selectOneAssumeMatch)

addPoolingInterceptors

public ConnectionInterceptor addPoolingInterceptors(ConnectionInterceptor tail)
Specified by:
addPoolingInterceptors in interface PoolingSupport

getPartitionCount

public int getPartitionCount()
Specified by:
getPartitionCount in interface PoolingAttributes

getPartitionMaxSize

public int getPartitionMaxSize()
Specified by:
getPartitionMaxSize in interface PoolingAttributes

setPartitionMaxSize

public void setPartitionMaxSize(int maxSize)
                         throws InterruptedException
Specified by:
setPartitionMaxSize in interface PoolingAttributes
Throws:
InterruptedException

getPartitionMinSize

public int getPartitionMinSize()
Specified by:
getPartitionMinSize in interface PoolingAttributes

setPartitionMinSize

public void setPartitionMinSize(int minSize)
Specified by:
setPartitionMinSize in interface PoolingAttributes

getIdleConnectionCount

public int getIdleConnectionCount()
Specified by:
getIdleConnectionCount in interface PoolingAttributes

getConnectionCount

public int getConnectionCount()
Specified by:
getConnectionCount in interface PoolingAttributes


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.