- getStats
returns statistics for this LogBuffer object.information is returned in the form
of an XML node that
- getWaitingThreads
returns the number of threads currently waiting for the buffer to be forced to
disk.
- init
initialize members for LogBuffer implementation class for reuse.LogBufferManager
maintains a pool of
- put
puts a data record into the buffer and returns a token for record.PRECONDITION:
caller holds a buffe
- release
decrements count of waiting threads and returns updated value.
- shouldForce
returns true if the buffer should be forced to disk.The criteria for determining
if a buffer should
- sync
park threads that are waiting for the ByteBuffer to be forced to disk.The count
of waiting threads (
- write
write ByteBuffer to the LogFile.updates the buffer header with the number of
bytes used. Based on co