Package io.agroal.api.cache
Interface LocalConnectionCache
-
public interface LocalConnectionCacheImplementations of ConnectionCache that rely onThreadLocal.- Author:
- Luis Barreiro
-
-
Method Summary
Static Methods Modifier and Type Method Description static ConnectionCachefixed(int size)A local cache that stores up to a number of connections.static ConnectionCachefull()A local cache that stores all connectionsstatic ConnectionCachesingle()A local cache that stores at most a single connection.
-
-
-
Method Detail
-
single
static ConnectionCache single()
A local cache that stores at most a single connection.
-
fixed
static ConnectionCache fixed(int size)
A local cache that stores up to a number of connections.
-
full
static ConnectionCache full()
A local cache that stores all connections
-
-