Class ObjectStoreConfig

  • All Implemented Interfaces:

    
    public final class ObjectStoreConfig
    
                        

    Configuration 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
    }.getOrThrow()
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getDescription() Description of the bucket
      final Long getMaxBucketSize() Maximum size of the bucket in bytes (default: -1 = unlimited)
      final StorageType getStorageType() Storage type (FILE or MEMORY)
      final Integer getReplicas() Number of replicas (default: 1)
      final PlacementConfig getPlacement() Placement configuration for clustering
      final Duration getTtl() TTL for objects in the bucket (default: no expiration)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait