public class OffsetRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_NAME |
| Constructor and Description |
|---|
OffsetRepository(MongoDbAccess mongoDbAccess)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createOrUpdateOffset(int tenant,
String collection,
long offset)
Create or update offset
|
long |
findOffsetBy(int tenant,
String collection)
Get current offset
|
public static final String COLLECTION_NAME
public OffsetRepository(MongoDbAccess mongoDbAccess)
mongoDbAccess - mongoDbAccesspublic void createOrUpdateOffset(int tenant,
String collection,
long offset)
tenant - the tenantcollection - the collection namepublic long findOffsetBy(int tenant,
String collection)
tenant - the tenantcollection - the collection nameCopyright © 2018 Vitam. All rights reserved.