Package io.quarkus.agroal.runtime
Class QuarkusSimpleConnectionCache
- java.lang.Object
-
- io.quarkus.agroal.runtime.QuarkusSimpleConnectionCache
-
- All Implemented Interfaces:
io.agroal.api.cache.ConnectionCache
class QuarkusSimpleConnectionCache extends Object implements io.agroal.api.cache.ConnectionCache
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ThreadLocal<io.agroal.api.cache.Acquirable>connectionCache
-
Constructor Summary
Constructors Constructor Description QuarkusSimpleConnectionCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.agroal.api.cache.Acquirableget()voidput(io.agroal.api.cache.Acquirable acquirable)voidreset()
-
-
-
Field Detail
-
connectionCache
volatile ThreadLocal<io.agroal.api.cache.Acquirable> connectionCache
-
-
Method Detail
-
get
public io.agroal.api.cache.Acquirable get()
- Specified by:
getin interfaceio.agroal.api.cache.ConnectionCache
-
put
public void put(io.agroal.api.cache.Acquirable acquirable)
- Specified by:
putin interfaceio.agroal.api.cache.ConnectionCache
-
reset
public void reset()
- Specified by:
resetin interfaceio.agroal.api.cache.ConnectionCache
-
-