public interface IRedoLogFileStorage<T extends IReplicationOrderedPacket> extends IRedoLogFileStorageStatistics
size() method which should not assume a reader lock is held.| Modifier and Type | Method and Description | 
|---|---|
| void | appendBatch(List<T> replicationPackets)Adds a batch of packets that will be stored at the end of the list | 
| void | close()Close the storage and clears its resources, the storage can no longer be used. | 
| void | deleteOldestPackets(long packetsCount)Delete a batch from the start of the list | 
| long | getCacheWeight() | 
| long | getDiscardedPacketsCount() | 
| default T | getOldest() | 
| default long | getOldestKey() | 
| long | getWeight() | 
| boolean | isEmpty() | 
| CompactionResult | performCompaction(long from,
                 long to) | 
| StorageReadOnlyIterator<T> | readOnlyIterator(long fromIndex) | 
| WeightedBatch<T> | removeFirstBatch(int batchCapacity,
                long lastCompactionRangeEndKey)Removes a batch from the start of the list | 
| default T | removeOldest() | 
| long | size()This method should not assume a reader lock is obtained when accessing it | 
| void | validateIntegrity()Validates the integrity of the storage | 
getExternalPacketsCount, getExternalStoragePacketsWeight, getMemoryPacketsCount, getMemoryPacketsWeight, getSpaceUsedvoid appendBatch(List<T> replicationPackets) throws StorageException, StorageFullException
replicationPackets - packets to storeStorageExceptionStorageFullExceptionlong size() throws StorageException
StorageExceptionWeightedBatch<T> removeFirstBatch(int batchCapacity, long lastCompactionRangeEndKey) throws StorageException
batchCapacity - WeightToRemove to removelastCompactionRangeEndKey - packets with keys larger than this cannot be discardedStorageExceptionvoid deleteOldestPackets(long packetsCount)
                  throws StorageException
packetsCount - number of packets to deleteStorageExceptionStorageReadOnlyIterator<T> readOnlyIterator(long fromIndex) throws StorageException
fromIndex - index to start iterating fromStorageExceptionboolean isEmpty()
         throws StorageException
StorageExceptionvoid validateIntegrity()
                throws RedoLogFileCompromisedException
RedoLogFileCompromisedExceptionvoid close()
long getWeight()
long getDiscardedPacketsCount()
CompactionResult performCompaction(long from, long to)
long getCacheWeight()
default T getOldest() throws StorageException
StorageExceptiondefault T removeOldest() throws StorageException
StorageExceptiondefault long getOldestKey()
                   throws StorageException
StorageExceptionCopyright © GigaSpaces.