Modifier and Type | Field and Description |
---|---|
boolean |
keepRunning |
boolean |
stopped |
Constructor and Description |
---|
MongoDbTailingProcess(MongoDbEndpoint endpoint,
MongoDbTailableCursorConsumer consumer,
MongoDbTailTrackingManager tailTrack) |
Modifier and Type | Method and Description |
---|---|
com.mongodb.DBCursor |
getCursor() |
void |
initializeProcess()
Initialise the tailing process, the cursor and if persistent tail tracking is enabled, recover the cursor from the persisted point.
|
void |
run()
The heart of the tailing process.
|
protected void |
stop() |
public volatile boolean keepRunning
public volatile boolean stopped
public MongoDbTailingProcess(MongoDbEndpoint endpoint, MongoDbTailableCursorConsumer consumer, MongoDbTailTrackingManager tailTrack)
public com.mongodb.DBCursor getCursor()
public void initializeProcess() throws Exception
Exception
Apache Camel