com.holonplatform.datastore.mongo.core

## Interface MongoDatabaseRunnable<MongoDatabase>

- Type Parameters:
    `MongoDatabase` - Actual MongoDatabase type
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface MongoDatabaseRunnable<MongoDatabase>

  Represents an operation to be executed using a Datastore managed `MongoDatabase`.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(MongoDatabase database)` Execute an operation using the provided MongoDatabase.

- - ### Method Detail

    - #### execute

          void execute(MongoDatabase database)
                throws Exception

      Execute an operation using the provided MongoDatabase.
      Parameters:
        `database` - The MongoDatabase reference
      Throws:
        `Exception` - If an error occurred

Copyright © 2019 The Holon Platform. All rights reserved.