Package io.ebeanservice.docstore.api
Interface DocStoreTransaction
-
public interface DocStoreTransaction
A document store transaction.This might just be a buffer to batch persist requests to the document store and may not support transactional semantics (like rollback).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flush()
Flush all changes to the document store.DocStoreUpdateContext
obtain()
Obtain a context to persist to (like a buffer).DocStoreUpdates
queue()
Add changes that should be queued to the DocStoreUpdates.
-
-
-
Method Detail
-
obtain
DocStoreUpdateContext obtain()
Obtain a context to persist to (like a buffer).
-
queue
DocStoreUpdates queue()
Add changes that should be queued to the DocStoreUpdates.This mostly means nested/embedded updates that need to be processed after the source persist event has propagated.
-
flush
void flush()
Flush all changes to the document store.
-
-