Module methanol

Interface Store

All Superinterfaces:
AutoCloseable, Closeable, Flushable
All Known Implementing Classes:
DiskStore, MemoryStore

public interface Store extends Closeable, Flushable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Writes an entry's metadata block and data stream.
    static interface 
     
    static interface 
     
    static interface 
    Reads an entry's metadata block and data stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes all entries from this store.
    void
    Closes this store.
    void
    Atomically clears and closes this store.
    edit(String key)
    Returns an Optional<Editor> for the entry associated with the given key (atomically creating a new one if necessary), or an empty optional if such entry can't be edited.
    Returns the optional executor used for asynchronous or background operations.
    void
    Flushes any data buffered by this store.
    Returns an iterator of Viewers over the entries in this store.
    long
    Returns this store's max size in bytes.
    boolean
    Removes the entry associated with the given key.
    default boolean
     
    long
    Returns the size in bytes of all entries in this store.
    view(String key)
    Returns a Optional<Viewer> for the entry associated with the given key, or an empty optional if there's no such entry.