public class PoolImpl extends Object implements Pool
Modifier and Type | Field and Description |
---|---|
protected Capacity |
capacity
capacity
|
protected Boolean |
fair
is-fair
|
protected FlushStrategy |
flushStrategy
flush-strategy
|
protected Integer |
initialPoolSize
initial-pool-size
|
protected Integer |
maxPoolSize
maxPoolSize
|
protected Integer |
minPoolSize
minPoolSize
|
protected Boolean |
prefill
prefill
|
protected Boolean |
useStrictMin
use-strict-min
|
Constructor and Description |
---|
PoolImpl(Integer minPoolSize,
Integer initialPoolSize,
Integer maxPoolSize,
Boolean prefill,
Boolean useStrictMin,
FlushStrategy flushStrategy,
Capacity capacity,
Boolean fair)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Capacity |
getCapacity() |
FlushStrategy |
getFlushStrategy() |
Integer |
getInitialPoolSize() |
Integer |
getMaxPoolSize() |
Integer |
getMinPoolSize() |
int |
hashCode() |
Boolean |
isFair() |
Boolean |
isPrefill() |
Boolean |
isUseStrictMin() |
String |
toString() |
void |
validate() |
protected Integer minPoolSize
protected Integer initialPoolSize
protected Integer maxPoolSize
protected Boolean prefill
protected Boolean useStrictMin
protected FlushStrategy flushStrategy
protected Capacity capacity
protected Boolean fair
public PoolImpl(Integer minPoolSize, Integer initialPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, FlushStrategy flushStrategy, Capacity capacity, Boolean fair) throws ValidateException
minPoolSize
- minPoolSizeinitialPoolSize
- initialPoolSizemaxPoolSize
- maxPoolSizeprefill
- prefilluseStrictMin
- useStrictMinflushStrategy
- flushStrategycapacity
- capacityfair
- fairValidateException
- ValidateExceptionpublic Integer getMinPoolSize()
getMinPoolSize
in interface Pool
public Integer getInitialPoolSize()
getInitialPoolSize
in interface Pool
public Integer getMaxPoolSize()
getMaxPoolSize
in interface Pool
public Boolean isUseStrictMin()
isUseStrictMin
in interface Pool
public FlushStrategy getFlushStrategy()
getFlushStrategy
in interface Pool
public Capacity getCapacity()
getCapacity
in interface Pool
public void validate() throws ValidateException
validate
in interface ValidatableMetadata
ValidateException
Copyright © 2021 JBoss by Red Hat. All rights reserved.