Class OfferLogDatabaseService
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.database.OfferLogDatabaseService
-
public class OfferLogDatabaseService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OfferLogDatabaseService(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bulkSave(java.lang.String containerName, java.util.List<java.lang.String> fileNames, OfferLogAction action, long sequence)
java.util.List<OfferLog>
getAscendingOfferLogsBy(java.lang.String containerName, java.lang.Long offset, int limit)
java.util.List<OfferLog>
getDescendingOfferLogsBy(java.lang.String containerName, java.lang.Long offset, int limit)
CloseableIterable<OfferLog>
getExpiredOfferLogByContainer(long expirationValue, java.time.temporal.ChronoUnit expirationUnit)
void
save(java.lang.String containerName, java.lang.String fileName, OfferLogAction action, long sequence)
-
-
-
Method Detail
-
save
public void save(java.lang.String containerName, java.lang.String fileName, OfferLogAction action, long sequence) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException
-
bulkSave
public void bulkSave(java.lang.String containerName, java.util.List<java.lang.String> fileNames, OfferLogAction action, long sequence) throws ContentAddressableStorageServerException, ContentAddressableStorageDatabaseException
-
getDescendingOfferLogsBy
public java.util.List<OfferLog> getDescendingOfferLogsBy(java.lang.String containerName, java.lang.Long offset, int limit)
-
getAscendingOfferLogsBy
public java.util.List<OfferLog> getAscendingOfferLogsBy(java.lang.String containerName, java.lang.Long offset, int limit)
-
getExpiredOfferLogByContainer
public CloseableIterable<OfferLog> getExpiredOfferLogByContainer(long expirationValue, java.time.temporal.ChronoUnit expirationUnit)
-
-