org.apache.jcs.utils.threadpool.behavior
Interface IPoolConfiguration
- All Known Implementing Classes:
- PoolConfiguration
- public interface IPoolConfiguration
- Author:
- aaronsm
POLICY_ABORT
public static final java.lang.String POLICY_ABORT
- See Also:
- Constant Field Values
POLICY_BLOCK
public static final java.lang.String POLICY_BLOCK
- See Also:
- Constant Field Values
POLICY_RUN
public static final java.lang.String POLICY_RUN
- See Also:
- Constant Field Values
POLICY_WAIT
public static final java.lang.String POLICY_WAIT
- See Also:
- Constant Field Values
POLICY_DISCARDOLDEST
public static final java.lang.String POLICY_DISCARDOLDEST
- See Also:
- Constant Field Values
setUseBoundary
public void setUseBoundary(boolean useBoundary)
- Parameters:
useBoundary
- The useBoundary to set.
isUseBoundary
public boolean isUseBoundary()
- Returns:
- Returns the useBoundary.
setBoundarySize
public void setBoundarySize(int boundarySize)
- Parameters:
boundarySize
- The boundarySize to set.
getBoundarySize
public int getBoundarySize()
- Returns:
- Returns the boundarySize.
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize)
- Parameters:
maximumPoolSize
- The maximumPoolSize to set.
getMaximumPoolSize
public int getMaximumPoolSize()
- Returns:
- Returns the maximumPoolSize.
setMinimumPoolSize
public void setMinimumPoolSize(int minimumPoolSize)
- Parameters:
minimumPoolSize
- The minimumPoolSize to set.
getMinimumPoolSize
public int getMinimumPoolSize()
- Returns:
- Returns the minimumPoolSize.
setKeepAliveTime
public void setKeepAliveTime(int keepAliveTime)
- Parameters:
keepAliveTime
- The keepAliveTime to set.
getKeepAliveTime
public int getKeepAliveTime()
- Returns:
- Returns the keepAliveTime.
setWhenBlockedPolicy
public void setWhenBlockedPolicy(java.lang.String whenBlockedPolicy)
- should be ABORT, BLOCK, RUN, WAIT, DISCARDOLDEST.
If an incorrect value is returned, run will be used.
- Parameters:
whenBlockedPolicy
- The whenBlockedPolicy to set.
getWhenBlockedPolicy
public java.lang.String getWhenBlockedPolicy()
- Returns:
- Returns the whenBlockedPolicy.
setStartUpSize
public void setStartUpSize(int startUpSize)
- Parameters:
startUpSize
- The startUpSize to set.
getStartUpSize
public int getStartUpSize()
- Returns:
- Returns the startUpSize.
Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.