- java.lang.Object
-
- org.redkale.source.DataJdbcSource.JdbcConnectionPool
-
- 所有已实现的接口:
AutoCloseable
- 封闭类:
- DataJdbcSource
protected class DataJdbcSource.JdbcConnectionPool extends Object implements AutoCloseable
-
-
字段概要
字段 修饰符和类型 字段 说明 protected LongAddercloseCounterprotected PropertiesconnectAttrsprotected intconnectTimeoutSecondsprotected LongAddercreatCounterprotected LongAddercycleCounterprotected Driverdriverprotected intmaxConnsprotected SemaphorenewSemaphoreprotected ArrayBlockingQueue<DataJdbcSource.JdbcConnection>queueprotected booleanreadFlagprotected Stringurlprotected AtomicIntegerurlVersionprotected LongAdderusingCounter
-
构造器概要
构造器 构造器 说明 JdbcConnectionPool(boolean readFlag, Properties prop)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleancheckValid(DataJdbcSource.JdbcConnection conn)voidclose()<C> voidofferConnection(C connection)<C> voidofferTransConnection(C connection)voidonResourceChange(ResourceEvent[] events)DataJdbcSource.JdbcConnectionpollConnection()DataJdbcSource.JdbcConnectionpollTransConnection()
-
-
-
字段详细资料
-
closeCounter
protected final LongAdder closeCounter
-
usingCounter
protected final LongAdder usingCounter
-
creatCounter
protected final LongAdder creatCounter
-
cycleCounter
protected final LongAdder cycleCounter
-
driver
protected final Driver driver
-
connectAttrs
protected final Properties connectAttrs
-
queue
protected ArrayBlockingQueue<DataJdbcSource.JdbcConnection> queue
-
connectTimeoutSeconds
protected int connectTimeoutSeconds
-
maxConns
protected int maxConns
-
newSemaphore
protected Semaphore newSemaphore
-
url
protected String url
-
urlVersion
protected final AtomicInteger urlVersion
-
readFlag
protected final boolean readFlag
-
-
构造器详细资料
-
JdbcConnectionPool
public JdbcConnectionPool(boolean readFlag, Properties prop)
-
-
方法详细资料
-
onResourceChange
@ResourceChanged public void onResourceChange(ResourceEvent[] events)
-
pollConnection
public DataJdbcSource.JdbcConnection pollConnection()
-
pollTransConnection
public DataJdbcSource.JdbcConnection pollTransConnection()
-
offerConnection
public <C> void offerConnection(C connection)
-
offerTransConnection
public <C> void offerTransConnection(C connection)
-
checkValid
protected boolean checkValid(DataJdbcSource.JdbcConnection conn)
-
close
public void close()
- 指定者:
close在接口中AutoCloseable
-
-