Package eu.vstoyanov.natsy.jetstream
Class ObjectStoreConfig
-
- All Implemented Interfaces:
public final class ObjectStoreConfigConfiguration for a JetStream Object Store bucket
Example:
val objectStore = js.objectStore("file-storage") { description = "Application file storage" storageType = StorageType.FILE replicas = 3 maxBucketSize = 10 * 1024 * 1024 * 1024L // 10GB }
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringdescriptionprivate final LongmaxBucketSizeprivate final StorageTypestorageTypeprivate final Integerreplicasprivate final PlacementConfigplacementprivate final Durationttl
-
Method Summary
Modifier and Type Method Description final StringgetDescription()Description of the bucket final LonggetMaxBucketSize()Maximum size of the bucket in bytes (default: -1 = unlimited) final StorageTypegetStorageType()Storage type (FILE or MEMORY) final IntegergetReplicas()Number of replicas (default: 1) final PlacementConfiggetPlacement()Placement configuration for clustering final DurationgetTtl()TTL for objects in the bucket (default: no expiration) -
-
Method Detail
-
getDescription
final String getDescription()
Description of the bucket
-
getMaxBucketSize
final Long getMaxBucketSize()
Maximum size of the bucket in bytes (default: -1 = unlimited)
-
getStorageType
final StorageType getStorageType()
Storage type (FILE or MEMORY)
-
getReplicas
final Integer getReplicas()
Number of replicas (default: 1)
-
getPlacement
final PlacementConfig getPlacement()
Placement configuration for clustering
-
-
-
-