-
-
Notifications
You must be signed in to change notification settings - Fork 137
Object Pool
Ohad Shai edited this page May 19, 2020
·
1 revision
jasync
uses a Connection Pool to manage connections. Under the hood it is using an implementation of an async object pool.
Since version 1.1.0 the object pool is exposed as a separate artifact and it is possible to use it by itself. To do so add the below dependency to your maven project:
<dependency>
<groupId>com.github.jasync-sql</groupId>
<artifactId>jasync-pool</artifactId>
<version>1.1.0</version>
</dependency>
Main classes in the API:
-
AsyncObjectPool
interface. -
PoolConfiguration
- hold the part of the configuration specific to the pool. -
ObjectFactory
- interface responsible to create/validate/destroy actual connections.
-- If you're interested in the implementation you can read about it here.