Class MongoDbMetadataStore

java.lang.Object
org.springframework.integration.mongodb.metadata.MongoDbMetadataStore
All Implemented Interfaces:
ConcurrentMetadataStore, MetadataStore

public class MongoDbMetadataStore extends Object implements ConcurrentMetadataStore
MongoDbMetadataStore implementation of ConcurrentMetadataStore. Use this MetadataStore to achieve meta-data persistence shared across application instances and restarts.
Since:
4.2
Author:
Senthil Arumugam, Samiraj Panneer Selvam, Artem Bilan, Gary Russell
  • Constructor Details

    • MongoDbMetadataStore

      public MongoDbMetadataStore(MongoDatabaseFactory factory)
      Configure the MongoDbMetadataStore by provided MongoDatabaseFactory and default collection name - DEFAULT_COLLECTION_NAME.
      Parameters:
      factory - the mongodb factory
    • MongoDbMetadataStore

      public MongoDbMetadataStore(MongoDatabaseFactory factory, String collectionName)
      Configure the MongoDbMetadataStore by provided MongoDatabaseFactory and collection name.
      Parameters:
      factory - the mongodb factory
      collectionName - the collection name where it persists the data
    • MongoDbMetadataStore

      public MongoDbMetadataStore(MongoTemplate template)
      Configure the MongoDbMetadataStore by provided MongoTemplate and default collection name - DEFAULT_COLLECTION_NAME.
      Parameters:
      template - the mongodb template
    • MongoDbMetadataStore

      public MongoDbMetadataStore(MongoTemplate template, String collectionName)
      Configure the MongoDbMetadataStore by provided MongoTemplate and collection name.
      Parameters:
      template - the mongodb template
      collectionName - the collection name where it persists the data
  • Method Details