public interface Writer
| Modifier and Type | Method and Description |
|---|---|
void |
closeWriter() |
long |
getDiskSize() |
long |
getSize() |
boolean |
isOpen() |
void |
openWriter() |
RecordIterator |
readAllRecords() |
RecordIterator |
readAllRecords(int limit) |
RecordResultImpl |
readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) |
void |
removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier,
java.util.function.Consumer<Long> postRemoveAction) |
Long |
updateRecord(String recordContents,
java.util.function.Supplier<Optional<Long>> recordPointerSupplier,
java.util.function.BiConsumer<Long,Long> consumer) |
Long |
writeRecord(String recordContents,
java.util.function.Consumer<Long> postWriteAction) |
void openWriter()
throws DatastoreException
DatastoreExceptionboolean isOpen()
void closeWriter()
throws JasDBStorageException
JasDBStorageExceptionRecordResultImpl readRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier) throws DatastoreException
DatastoreExceptionLong writeRecord(String recordContents, java.util.function.Consumer<Long> postWriteAction) throws DatastoreException
DatastoreExceptionvoid removeRecord(java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.Consumer<Long> postRemoveAction) throws DatastoreException
DatastoreExceptionLong updateRecord(String recordContents, java.util.function.Supplier<Optional<Long>> recordPointerSupplier, java.util.function.BiConsumer<Long,Long> consumer) throws DatastoreException
DatastoreExceptionlong getDiskSize()
throws JasDBStorageException
JasDBStorageExceptionlong getSize()
RecordIterator readAllRecords() throws DatastoreException
DatastoreExceptionRecordIterator readAllRecords(int limit) throws DatastoreException
DatastoreExceptionCopyright © 2015. All rights reserved.