Package com._1c.g5.v8.bm.store
Interface IBmWal
- 
 public interface IBmWalWrite-ahead log.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceIBmWal.IEntryProcessorEntry processor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(boolean onError)Closes the log.voidlog(byte[] data, int offset, int length)Adds log entry.voidprocessEntries(IBmWal.IEntryProcessor processor)Invokes entry processor for each log entry if any.voidreset()Resets the log (all the entries are removed).longsize()Gets the size of the log.
 
- 
- 
- 
Method Detail- 
closevoid close(boolean onError) throws IOExceptionCloses the log. Deletes the log if the closing was not requested due to an error.- Parameters:
- onError- The flag indicating whether the closing was requested due to an error.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
logvoid log(byte[] data, int offset, int length) throws IOExceptionAdds log entry.- Parameters:
- data- A byte array containing the log entry data. May not be- null.
- offset- The offset of the log entry data within the array.
- length- The length of the entry data.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
resetvoid reset() throws IOExceptionResets the log (all the entries are removed).- Throws:
- IOException- if any I/O error occurs.
 
 - 
sizelong size() throws IOException Gets the size of the log.- Returns:
- the size of the log in bytes.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
processEntriesvoid processEntries(IBmWal.IEntryProcessor processor) throws IOException Invokes entry processor for each log entry if any.- Parameters:
- entryProcessor- The entry processor. May not be- null.
- Throws:
- IOException- if any I/O error occurs.
 
 
- 
 
-