public interface StreamLogWithRankedAddressSpace extends StreamLog
Created by Konstantin Spirov on 3/15/2017.
Modifier and Type | Method and Description |
---|---|
default void |
assertAppendPermittedUnsafe(long address,
LogData newEntry)
Check whether the data can be appended to a given log address.
|
append, append, close, compact, getAllTails, getLogTail, getOverwriteCauseForAddress, getStreamsAddressSpace, getTails, getTrimMark, prefixTrim, read, reset, sync
default void assertAppendPermittedUnsafe(long address, LogData newEntry) throws DataOutrankedException, ValueAdoptedException
address
- log address of appendnewEntry
- log entry to appendDataOutrankedException
- if the log entry cannot be assigned to this log address
as there is a data with higher rankValueAdoptedException
- if the new message is a proposal during the two phase recovery
write and there is an existing
data at this log address already.Copyright © 2019 CorfuDB. All rights reserved.