public class PoolImpl extends java.lang.Object implements Pool
Modifier and Type | Field and Description |
---|---|
protected Capacity |
capacity
capacity
|
protected java.lang.Boolean |
fair
is-fair
|
protected FlushStrategy |
flushStrategy
flush-strategy
|
protected java.lang.Integer |
initialPoolSize
initial-pool-size
|
protected java.lang.Integer |
maxPoolSize
maxPoolSize
|
protected java.lang.Integer |
minPoolSize
minPoolSize
|
protected java.lang.Boolean |
prefill
prefill
|
protected java.lang.Boolean |
useStrictMin
use-strict-min
|
Constructor and Description |
---|
PoolImpl(java.lang.Integer minPoolSize,
java.lang.Integer initialPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
FlushStrategy flushStrategy,
Capacity capacity,
java.lang.Boolean fair)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Capacity |
getCapacity()
Get the capacity
|
FlushStrategy |
getFlushStrategy()
Get the flushStrategy.
|
java.lang.Integer |
getInitialPoolSize()
Get the initial pool size
|
java.lang.Integer |
getMaxPoolSize()
Get the maxPoolSize.
|
java.lang.Integer |
getMinPoolSize()
Get the minPoolSize.
|
int |
hashCode() |
java.lang.Boolean |
isFair()
Get pool fairness.
|
java.lang.Boolean |
isPrefill()
Get the prefill.
|
java.lang.Boolean |
isUseStrictMin()
Get the useStrictMin.
|
java.lang.String |
toString() |
void |
validate()
Validate this metadata according validation required by specification
|
protected java.lang.Integer minPoolSize
protected java.lang.Integer initialPoolSize
protected java.lang.Integer maxPoolSize
protected java.lang.Boolean prefill
protected java.lang.Boolean useStrictMin
protected FlushStrategy flushStrategy
protected Capacity capacity
protected java.lang.Boolean fair
public PoolImpl(java.lang.Integer minPoolSize, java.lang.Integer initialPoolSize, java.lang.Integer maxPoolSize, java.lang.Boolean prefill, java.lang.Boolean useStrictMin, FlushStrategy flushStrategy, Capacity capacity, java.lang.Boolean fair) throws ValidateException
minPoolSize
- minPoolSizeinitialPoolSize
- initialPoolSizemaxPoolSize
- maxPoolSizeprefill
- prefilluseStrictMin
- useStrictMinflushStrategy
- flushStrategycapacity
- capacityfair
- fairValidateException
- ValidateExceptionpublic java.lang.Integer getMinPoolSize()
getMinPoolSize
in interface Pool
public java.lang.Integer getInitialPoolSize()
getInitialPoolSize
in interface Pool
public java.lang.Integer getMaxPoolSize()
getMaxPoolSize
in interface Pool
public java.lang.Boolean isPrefill()
public java.lang.Boolean isUseStrictMin()
isUseStrictMin
in interface Pool
public FlushStrategy getFlushStrategy()
getFlushStrategy
in interface Pool
public Capacity getCapacity()
getCapacity
in interface Pool
public java.lang.Boolean isFair()
public void validate() throws ValidateException
validate
in interface ValidatableMetadata
ValidateException
- in case of validation failpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)