Commit Graph

13 Commits

Author SHA1 Message Date
Alva Swanson
9d4d39650f
persistence: Implement RollingBackups 2024-02-26 08:39:21 +01:00
Alva Swanson
d38bb701e7
Implement DirectoryHasNChildren Hamcrest Matcher 2024-02-16 14:48:32 +01:00
Alva Swanson
fd6b446544
Implement AtomicFileWriterIntegrationTests
- singleWrite
- twoWritesSecondSmaller
- twoWriteSecondLarger
2024-02-15 14:41:53 +01:00
Alva Swanson
f7443b7676
PersistenceFileWrite: Truncate file before writing 2024-02-15 14:41:53 +01:00
Alva Swanson
bf57524671
Return CompletableFuture in PersistenceFileWriter.write 2024-02-15 14:41:53 +01:00
Alva Swanson
a30d4d55d6
Implement AsyncFileWriter.truncate() 2024-02-10 15:30:11 +01:00
Alva Swanson
7f06107f4d
Implement AtomicFileWriter
First, the AtomicFileWriter writes data to a rolling file and before
swapping the rolling file with the active file. This makes all file
writes atomic and let's Bisq recover from crashes.
2024-02-07 14:53:16 +01:00
Alva Swanson
db5fb3b2fd
Add getFilePath() to PersistenceFileWriter 2024-02-07 14:53:16 +01:00
Alva Swanson
f483badd2e
Add getFilePath() to AsyncFileWriter Interface 2024-02-07 14:53:16 +01:00
Alva Swanson
6707af5f7c
Implement AsyncFileChannelWriter 2024-02-02 14:47:24 +01:00
Alva Swanson
97cee35e39
Make PersistenceFileWriter Async 2024-02-01 14:20:30 +01:00
Alva Swanson
80cdd31d45
Implement Async PersistenceFileWriter 2024-01-31 14:50:12 +01:00
Alva Swanson
aa7ec4570e
Create persistence module 2024-01-31 14:50:12 +01:00