Package io.camunda.document.store
Class InMemoryDocumentStore
java.lang.Object
io.camunda.document.store.InMemoryDocumentStore
- All Implemented Interfaces:
DocumentStore
An in-memory implementation of the
DocumentStore interface. This implementation is
intended for testing purposes only. It is not multi-instance safe and does not persist documents
across restarts.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDocument(DocumentCreationRequest request) createLink(String documentId, long durationInSeconds) deleteDocument(String documentId) getDocument(String documentId)
-
Constructor Details
-
InMemoryDocumentStore
public InMemoryDocumentStore()
-
-
Method Details
-
createDocument
public CompletableFuture<Either<DocumentError,DocumentReference>> createDocument(DocumentCreationRequest request) - Specified by:
createDocumentin interfaceDocumentStore
-
getDocument
- Specified by:
getDocumentin interfaceDocumentStore
-
deleteDocument
- Specified by:
deleteDocumentin interfaceDocumentStore
-
createLink
public CompletableFuture<Either<DocumentError,DocumentLink>> createLink(String documentId, long durationInSeconds) - Specified by:
createLinkin interfaceDocumentStore
-