protected boolean riverHasIndexedFromOplog() { return MongoDBRiver.getLastTimestamp(esClient, definition) != null; }
protected Timestamp<?> getLastProcessedTimestamp() { return MongoDBRiver.getLastTimestamp(esClient, definition); }
MongoDBRiverDefinition definition = MongoDBRiverDefinition.parseSettings(riverName, riverIndexName, riverSettings, null); Timestamp<?> ts = MongoDBRiver.getLastTimestamp(esClient, definition); Long lastTimestamp = null; if (ts != null) {