Uses of Interface
com.github.mizosoft.methanol.TrackedResponse
-
Packages that use TrackedResponse Package Description com.github.mizosoft.methanol com.github.mizosoft.methanol.internal.cache -
-
Uses of TrackedResponse in com.github.mizosoft.methanol
Subinterfaces of TrackedResponse in com.github.mizosoft.methanol Modifier and Type Interface Description interfaceCacheAwareResponse<T>ATrackedResponsethat knows it may have been generated from an HTTP cache.Methods in com.github.mizosoft.methanol that return TrackedResponse Modifier and Type Method Description TrackedResponse<T>ResponseBuilder. buildTrackedResponse()Methods in com.github.mizosoft.methanol that return types with arguments of type TrackedResponse Modifier and Type Method Description java.util.Optional<TrackedResponse<?>>CacheAwareResponse. cacheResponse()Returns anOptionalfor the response constructed from cache.java.util.Optional<TrackedResponse<?>>CacheAwareResponse. networkResponse()Returns anOptionalfor the response received as a result of using the network.Methods in com.github.mizosoft.methanol with parameters of type TrackedResponse Modifier and Type Method Description ResponseBuilder<T>ResponseBuilder. cacheResponse(@Nullable TrackedResponse<?> cacheResponse)ResponseBuilder<T>ResponseBuilder. networkResponse(@Nullable TrackedResponse<?> networkResponse)default voidHttpCache.Listener. onNetworkUse(java.net.http.HttpRequest request, @Nullable TrackedResponse<?> cacheResponse)Called when the cache is about to use the network due to a cache miss. -
Uses of TrackedResponse in com.github.mizosoft.methanol.internal.cache
Methods in com.github.mizosoft.methanol.internal.cache that return TrackedResponse Modifier and Type Method Description TrackedResponse<?>RawResponse. get()<T> TrackedResponse<T>RawResponse. handle(java.net.http.HttpResponse.BodyHandler<T> handler)Methods in com.github.mizosoft.methanol.internal.cache that return types with arguments of type TrackedResponse Modifier and Type Method Description abstract <T> java.util.concurrent.CompletableFuture<TrackedResponse<T>>RawResponse. handleAsync(java.net.http.HttpResponse.BodyHandler<T> handler, java.util.concurrent.Executor executor)Methods in com.github.mizosoft.methanol.internal.cache with parameters of type TrackedResponse Modifier and Type Method Description static CacheResponseMetadataCacheResponseMetadata. from(TrackedResponse<?> response)static NetworkResponseNetworkResponse. of(TrackedResponse<java.util.concurrent.Flow.Publisher<java.util.List<java.nio.ByteBuffer>>> response)Constructors in com.github.mizosoft.methanol.internal.cache with parameters of type TrackedResponse Constructor Description CacheResponse(TrackedResponse<?> response, Store.Viewer viewer, java.util.concurrent.Executor executor, CacheReadingPublisher.Listener readListener)
-