Class Http2ConnectionCache
java.lang.Object
io.helidon.webclient.spi.ClientConnectionCache
io.helidon.webclient.http2.Http2ConnectionCache
- All Implemented Interfaces:
Resumable, ReleasableResource
A cache of HTTP2 connections.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the resource, we cannot use nameclose, as that would conflict withAutoCloseable, as we do not want to have a checked exception thrown.static Http2ConnectionCachecreate()Creates a fresh connection cache.protected voidevict()Evict all cached connections.static Http2ConnectionCacheshared()Returns a reference to the shared connection cache.voidsuspend()Invoked by before suspend.Methods inherited from class ClientConnectionCache
resumeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReleasableResource
releaseResourceModifier and TypeMethodDescriptiondefault voidReleases the resource, and if this resource is re-usable, enabled reuse.
-
Method Details
-
create
Creates a fresh connection cache.- Returns:
- new connection cache
-
evict
protected void evict()Description copied from class:ClientConnectionCacheEvict all cached connections.- Specified by:
evictin classClientConnectionCache
-
suspend
public void suspend()Description copied from interface:ResumableInvoked by before suspend.- Specified by:
suspendin interfaceResumable- Overrides:
suspendin classClientConnectionCache
-
closeResource
public void closeResource()Description copied from interface:ReleasableResourceCloses the resource, we cannot use nameclose, as that would conflict withAutoCloseable, as we do not want to have a checked exception thrown.