Class OfferLogDatabaseService
java.lang.Object
fr.gouv.vitam.storage.offers.database.OfferLogDatabaseService
-
Constructor Summary
ConstructorDescriptionOfferLogDatabaseService
(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkSave
(String containerName, List<String> fileNames, OfferLogAction action, long sequence) getAscendingOfferLogsBy
(String containerName, Long offset, int limit) getDescendingOfferLogsBy
(String containerName, Long offset, int limit) getExpiredOfferLogByContainer
(long expirationValue, ChronoUnit expirationUnit) void
save
(String containerName, String fileName, OfferLogAction action, long sequence)
-
Constructor Details
-
OfferLogDatabaseService
public OfferLogDatabaseService(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection)
-
-
Method Details
-
save
public void save(String containerName, String fileName, OfferLogAction action, long sequence) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException -
bulkSave
public void bulkSave(String containerName, List<String> fileNames, OfferLogAction action, long sequence) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException -
getDescendingOfferLogsBy
-
getAscendingOfferLogsBy
-
getExpiredOfferLogByContainer
public CloseableIterable<OfferLog> getExpiredOfferLogByContainer(long expirationValue, ChronoUnit expirationUnit)
-