Class ServiceConfig.Foyer

java.lang.Object
org.apache.opendal.ServiceConfig.Foyer
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Foyer extends Object implements ServiceConfig
Configuration for service foyer.
  • Field Details

    • diskCapacity

      public final Long diskCapacity

      Disk cache total capacity in bytes. Only used when disk_path is set.

    • diskFileSize

      public final Long diskFileSize

      Individual cache file size in bytes.

      Default is 1 MiB. Only used when disk_path is set.

    • diskPath

      public final String diskPath

      Disk cache directory path.

      If set, enables hybrid cache with disk storage. Data will be persisted to this directory when memory cache is full.

    • memory

      public final Long memory

      Memory capacity in bytes for the cache.

    • name

      public final String name

      Name for this cache instance.

    • recoverMode

      public final String recoverMode

      Recovery mode when starting the cache.

      Valid values: "none" (default), "quiet", "strict".

      • "none": Don't recover from disk
      • "quiet": Recover and skip errors
      • "strict": Recover and panic on errors
    • root

      public final String root

      Root path of this backend.

    • shards

      public final Long shards

      Number of shards for concurrent access.

      Default is 1. Higher values improve concurrency but increase overhead.

  • Constructor Details

    • Foyer

      public Foyer()
  • Method Details