Interface BlobStoreFactory


public interface BlobStoreFactory
The BlobStoreFactory can be used to create a new or get an existing BlobStores.
You can either create a global BlobStore or a BlobStore for a specific repository. To create a global BlobStore call:
     blobStoreFactory
       .withName("name")
       .build();
 
To create a BlobStore for a specific repository call:
     blobStoreFactory
       .withName("name")
       .forRepository(repository)
       .build();
 
Since:
1.23
  • Method Details

    • getStore

      BlobStore getStore(StoreParameters storeParameters)
      Creates a new or gets an existing BlobStore. Instead of calling this method you should use the floating API from withName(String).
      Parameters:
      storeParameters - The parameters for the blob store.
      Returns:
      A new or an existing BlobStore for the given parameters.
    • withName

      default StoreParametersBuilder<BlobStore> withName(String name)
      Use this to create a new or get an existing BlobStore with a floating API.
      Parameters:
      name - The name for the BlobStore.
      Returns:
      Floating API to either specify a repository or directly build a global BlobStore.