Class ServiceConfig.Foyer
java.lang.Object
org.apache.opendal.ServiceConfig.Foyer
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
Configuration for service foyer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.Cacache, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Gcs, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Tos, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal LongDisk cache total capacity in bytes.final LongIndividual cache file size in bytes.final StringDisk cache directory path.final LongMemory capacity in bytes for the cache.final StringName for this cache instance.final StringRecovery mode when starting the cache.final StringRoot path of this backend.final LongNumber of shards for concurrent access. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
diskCapacity
Disk cache total capacity in bytes. Only used when
disk_pathis set. -
diskFileSize
Individual cache file size in bytes.
Default is 1 MiB. Only used when
disk_pathis set. -
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
Memory capacity in bytes for the cache.
-
name
Name for this cache instance.
-
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
Root path of this backend.
-
shards
Number of shards for concurrent access.
Default is 1. Higher values improve concurrency but increase overhead.
-
-
Constructor Details
-
Foyer
public Foyer()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-