MTC is task to be configured in order to consume documents from a tailable collection in a mongo database. It optionally allows to persist the id the last processed document in the collection so the task can be safely restarted.
Original idea from the camel-mongodb component, totally rewritten and based on mongo-java-driver 3.
- A
DocumentHandler
implementation to manage each document being consumed from the database. - A MTCConfiguration object with:
- A MongoClient instance to provide connection to MongoDb .
- A database and a collection name.
- Optionally, set with an MTCPersistentTrackingConfiguration instance.