Class CacheResponse
java.lang.Object
com.github.mizosoft.methanol.internal.cache.RawResponse
com.github.mizosoft.methanol.internal.cache.CacheResponse
- All Implemented Interfaces:
Closeable, AutoCloseable
A
RawResponse retrieved from cache.-
Constructor Summary
ConstructorsConstructorDescriptionCacheResponse(TrackedResponse<?> response, Store.Viewer viewer, Executor executor, CacheReadingPublisher.Listener readListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()edit()<T> CompletableFuture<TrackedResponse<T>> handleAsync(HttpResponse.BodyHandler<T> handler, Executor executor) with(Consumer<ResponseBuilder<?>> mutator) Methods inherited from class RawResponse
get, handle, toString
-
Constructor Details
-
CacheResponse
public CacheResponse(TrackedResponse<?> response, Store.Viewer viewer, Executor executor, CacheReadingPublisher.Listener readListener)
-
-
Method Details
-
with
- Specified by:
within classRawResponse
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
edit
-
handleAsync
public <T> CompletableFuture<TrackedResponse<T>> handleAsync(HttpResponse.BodyHandler<T> handler, Executor executor) - Specified by:
handleAsyncin classRawResponse
-