Skip to content

FileCacheWriter

interface FileCacheWriter
Package: dev.joid.lib.cache · Module: core · Source: FileCacheWriter.java

Writes the content of a cache entry into the file it is given.

Pass it as a lambda to FileCacheArea.compute or FileCacheArea.store.

ReturnsSignatureSummary
voidwrite(File file) abstractJOID calls it on the calling thread with a temporary path in the area: create that file, or a folder there, with the content of the entry.

void write(File file) abstract

JOID calls it on the calling thread with a temporary path in the area: create that file, or a folder there, with the content of the entry. Throw IOException on failure; the temporary file is then deleted and nothing is cached.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page