Uses of Interface
com.github.mizosoft.methanol.TrackedResponse
Packages that use TrackedResponse
-
Uses of TrackedResponse in com.github.mizosoft.methanol
Subinterfaces of TrackedResponse in com.github.mizosoft.methanolModifier and TypeInterfaceDescriptioninterfaceATrackedResponsethat knows it may have been generated from an HTTP cache.Methods in com.github.mizosoft.methanol that return TrackedResponseMethods in com.github.mizosoft.methanol that return types with arguments of type TrackedResponseModifier and TypeMethodDescriptionCacheAwareResponse.cacheResponse()Returns anOptionalfor the response constructed from cache.CacheAwareResponse.networkResponse()Returns anOptionalfor the response received as a result of using the network.Methods in com.github.mizosoft.methanol with parameters of type TrackedResponseModifier and TypeMethodDescriptionResponseBuilder.cacheResponse(@Nullable TrackedResponse<?> cacheResponse) ResponseBuilder.networkResponse(@Nullable TrackedResponse<?> networkResponse) default voidHttpCache.Listener.onNetworkUse(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 TrackedResponseModifier and TypeMethodDescriptionRawResponse.get()<T> TrackedResponse<T> RawResponse.handle(HttpResponse.BodyHandler<T> handler) Methods in com.github.mizosoft.methanol.internal.cache that return types with arguments of type TrackedResponseModifier and TypeMethodDescriptionabstract <T> CompletableFuture<TrackedResponse<T>> RawResponse.handleAsync(HttpResponse.BodyHandler<T> handler, Executor executor) Methods in com.github.mizosoft.methanol.internal.cache with parameters of type TrackedResponseModifier and TypeMethodDescriptionstatic CacheResponseMetadataCacheResponseMetadata.from(TrackedResponse<?> response) static NetworkResponseNetworkResponse.of(TrackedResponse<Flow.Publisher<List<ByteBuffer>>> response) Constructors in com.github.mizosoft.methanol.internal.cache with parameters of type TrackedResponseModifierConstructorDescriptionCacheResponse(TrackedResponse<?> response, Store.Viewer viewer, Executor executor, CacheReadingPublisher.Listener readListener)