com.holonplatform.datastore.mongo.core.tx

## Interface MongoTransactionFactory<S extends com.mongodb.session.ClientSession,TX extends MongoTransaction<S>>

- Type Parameters:
    `S` - Concrete ClientSession type
    `TX` - Concrete transaction type

      public interface MongoTransactionFactory<S extends com.mongodb.session.ClientSession,TX extends MongoTransaction<S>>

  Factory to create and configure new `MongoTransaction` implementation using a `ClientSession` and a `TransactionConfiguration` definition.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `TX` | `createTransaction(S session, com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)` Create a new `MongoTransaction`.

- - ### Method Detail

    - #### createTransaction

          TX createTransaction(S session,
                               com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
                        throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException

      Create a new `MongoTransaction`.
      Parameters:
        `session` - The client sesion to use
        `configuration` - The transaction configuration
      Returns:
        A new `MongoTransaction` instance
      Throws:
        `com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException` - If an error occurred

Copyright © 2019 The Holon Platform. All rights reserved.