public interface ReactiveMongoTransaction extends MongoTransaction<com.mongodb.reactivestreams.client.ClientSession>, com.holonplatform.reactor.datastore.transaction.ReactiveTransaction
Transaction.com.holonplatform.core.datastore.transaction.TransactionStatus.IllegalTransactionStatusException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionNotSupportedException| Modifier and Type | Method and Description |
|---|---|
static ReactiveMongoTransaction |
create(com.mongodb.reactivestreams.client.ClientSession session,
com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
Create a new
ReactiveMongoTransaction. |
static ReactiveMongoTransaction |
delegate(ReactiveMongoTransaction delegated)
Create a
ReactiveMongoTransaction which delegates its operations and status to the given delegated
transaction. |
reactor.core.publisher.Mono<Void> |
end()
Finalize the transaction.
|
void |
start()
Start the transaction.
|
getConfiguration, getSessionvoid start()
throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException
TransactionException - If an error occurredcom.holonplatform.core.datastore.transaction.TransactionStatus.TransactionExceptionreactor.core.publisher.Mono<Void> end() throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException
Mono to handle the transaction endTransactionException - If an error occurredcom.holonplatform.core.datastore.transaction.TransactionStatus.TransactionExceptionstatic ReactiveMongoTransaction create(com.mongodb.reactivestreams.client.ClientSession session, com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
ReactiveMongoTransaction.session - Client session (not null)configuration - Transaction configuration (not null)ReactiveMongoTransaction implementationstatic ReactiveMongoTransaction delegate(ReactiveMongoTransaction delegated)
ReactiveMongoTransaction which delegates its operations and status to the given delegated
transaction.
The delegated transaction returns false from the TransactionStatus.isNew() method.
delegated - Delegated transaction (not null)ReactiveMongoTransaction implementationCopyright © 2019 The Holon Platform. All rights reserved.