public interface IRedoLogFileStorage<T> 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 |
deleteFirstBatch(long batchSize)
Delete a batch from the start of the list
|
boolean |
isEmpty() |
StorageReadOnlyIterator<T> |
readOnlyIterator() |
StorageReadOnlyIterator<T> |
readOnlyIterator(long fromIndex) |
List<T> |
removeFirstBatch(int batchSize)
Removes a batch from the start of the list
|
long |
size()
This method should not assume a reader lock is obtained when accessing it
|
void |
validateIntegrity()
Validates the integrity of the storage
|
getExternalPacketsCount, getMemoryPacketsCount, getSpaceUsed
void appendBatch(List<T> replicationPackets) throws StorageException, StorageFullException
replicationPackets
- packets to storeStorageException
StorageFullException
long size() throws StorageException
StorageException
List<T> removeFirstBatch(int batchSize) throws StorageException
batchSize
- batch size to removeStorageException
void deleteFirstBatch(long batchSize) throws StorageException
batchSize
- batch size to deleteStorageException
StorageReadOnlyIterator<T> readOnlyIterator() throws StorageException
StorageException
StorageReadOnlyIterator<T> readOnlyIterator(long fromIndex) throws StorageException
fromIndex
- index to start iterating fromStorageException
boolean isEmpty() throws StorageException
StorageException
void validateIntegrity() throws RedoLogFileCompromisedException
RedoLogFileCompromisedException
void close()
Copyright © GigaSpaces.