| java.lang.Object com.sleepycat.je.log.LogBuffer
LogBuffer | class LogBuffer implements LogSource(Code) | | DbLogBuffers hold outgoing, newly written log entries.
|
containsLsn | boolean containsLsn(long lsn) throws DatabaseException(Code) | | Support for reading a log entry out of a still-in-memory log
true if this buffer holds the entry at this LSN. Thebuffer will be latched for read. Returns false ifLSN is not here, and releases the read latch. |
getCapacity | int getCapacity()(Code) | | capacity in bytes |
getDataBuffer | ByteBuffer getDataBuffer()(Code) | | the actual data buffer. |
getFirstLsn | long getFirstLsn()(Code) | | Return first LSN held in this buffer. Assumes the log write latch is
held.
|
getRewriteAllowed | boolean getRewriteAllowed()(Code) | | |
hasRoom | boolean hasRoom(int numBytes)(Code) | | Check capacity of buffer. Assumes that the log write latch is held.
true if this buffer can hold this many more bytes. |
latchForWrite | public void latchForWrite() throws DatabaseException(Code) | | When modifying the buffer, acquire the readLatch. Call release() to
release the latch. Note that containsLsn() acquires the latch for
reading.
|
setRewriteAllowed | void setRewriteAllowed()(Code) | | |
|
|