MongoDatabase - Actual MongoDatabase type (sync or async)public interface MongoDatabaseHandler<MongoDatabase>
| Modifier and Type | Method and Description |
|---|---|
<R> R |
withDatabase(MongoDatabaseOperation<MongoDatabase,R> operation)
Execute given
MongoDatabaseOperation using a managed MongoDatabase. |
default void |
withDatabase(MongoDatabaseRunnable<MongoDatabase> operation)
Execute given
MongoDatabaseRunnable operation using a managed MongoDatabase. |
<R> R withDatabase(MongoDatabaseOperation<MongoDatabase,R> operation)
MongoDatabaseOperation using a managed MongoDatabase.R - Operation result typeoperation - Operation to execute (not null)default void withDatabase(MongoDatabaseRunnable<MongoDatabase> operation)
MongoDatabaseRunnable operation using a managed MongoDatabase.operation - Operation to execute (not null)Copyright © 2019 The Holon Platform. All rights reserved.