You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2019/06/24 10:07:00 UTC
[jira] [Created] (JAMES-2806) Adding bucket capability into
BlobStore
Tellier Benoit created JAMES-2806:
-------------------------------------
Summary: Adding bucket capability into BlobStore
Key: JAMES-2806
URL: https://issues.apache.org/jira/browse/JAMES-2806
Project: James Server
Issue Type: New Feature
Components: Blob
Reporter: Tellier Benoit
You should update current BlobStore API to be able to customize the way we storeBlob:
- We want to store a blob in a specified bucket
{code:java}
public interface BlobStore {
Publisher<BlobId> save(BucketName, byte[] data);
Publisher<BlobId> save(BucketName, InputStream data);
Publisher<byte[]> readBytes(BucketName, BlobId blobId);
InputStream read(BucketName, BlobId blobId);
}
{code}
And to implement the feature of deleting buckets exceed retention time, we need to have another additional method of deleting bucket:
{code:java}
public interface BlobStore {
Publisher<Void> delete(BucketName bucket);
}
{code}
Scope: API change, contract test, memory + object storage implementation - cassandra will be done in a later task
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org