- java.lang.Object
-
- org.redkale.source.DataJdbcSource.JdbcConnectionPool
-
- 所有已实现的接口:
AutoCloseable
- 封闭类:
- DataJdbcSource
protected class DataJdbcSource.JdbcConnectionPool extends Object implements AutoCloseable
-
-
字段概要
字段 修饰符和类型 字段 说明 protected LongAdder
closeCounter
protected Properties
connectAttrs
protected int
connectTimeoutSeconds
protected LongAdder
creatCounter
protected LongAdder
cycleCounter
protected Driver
driver
protected int
maxConns
protected Semaphore
newSemaphore
protected ArrayBlockingQueue<DataJdbcSource.JdbcConnection>
queue
protected boolean
readFlag
protected String
url
protected AtomicInteger
urlVersion
protected LongAdder
usingCounter
-
构造器概要
构造器 构造器 说明 JdbcConnectionPool(boolean readFlag, Properties prop)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected boolean
checkValid(DataJdbcSource.JdbcConnection conn)
void
close()
<C> void
offerConnection(C connection)
<C> void
offerTransConnection(C connection)
void
onResourceChange(ResourceEvent[] events)
DataJdbcSource.JdbcConnection
pollConnection()
DataJdbcSource.JdbcConnection
pollTransConnection()
-
-
-
字段详细资料
-
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
-
-