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.
Description
Section titled “Description”Pass it as a lambda to FileCacheArea.compute or FileCacheArea.store.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Method details
Section titled “Method details”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
