Class ClientConnectionCache
java.lang.Object
io.helidon.webclient.spi.ClientConnectionCache
- All Implemented Interfaces:
Resumable, ReleasableResource
- Direct Known Subclasses:
Http2ConnectionCache
Client connection cache with release shutdown hook to provide graceful shutdown.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientConnectionCache(boolean shared) Create a client connection cache. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReleasableResource
closeResource, releaseResourceModifier and TypeMethodDescriptionvoidCloses the resource, we cannot use nameclose, as that would conflict withAutoCloseable, as we do not want to have a checked exception thrown.default voidReleases the resource, and if this resource is re-usable, enabled reuse.
-
Constructor Details
-
ClientConnectionCache
protected ClientConnectionCache(boolean shared) Create a client connection cache.- Parameters:
shared- whether the cache is shared and should be closed on JVM shutdown
-
-
Method Details
-
suspend
-
resume
-
evict
protected abstract void evict()Evict all cached connections.
-