Lines Matching defs:buffer
30 * <tt>Handler</tt> that buffers requests in a circular buffer in memory.
33 * into its memory buffer and discards earlier records. This buffering
35 * conditions, the <tt>MemoryHandler</tt> will push out its current buffer
39 * There are three main models for triggering a push of the buffer:
67 * defines the buffer size (defaults to 1000). </li>
95 private LogRecord buffer[];
152 buffer = new LogRecord[size];
162 * argument and buffer size argument are used.
165 * @param size the number of log records to buffer (must be greater than zero)
187 * Store a <tt>LogRecord</tt> in an internal buffer.
192 * an internal circular buffer. Then the record's level property is
206 int ix = (start+count)%buffer.length;
207 buffer[ix] = record;
208 if (count < buffer.length) {
212 start %= buffer.length;
222 * The buffer is then cleared.
226 int ix = (start+i)%buffer.length;
227 LogRecord record = buffer[ix];
230 // Empty the buffer.
239 * buffer are <b>not</b> written out. That requires a "push".
261 * into our internal buffer, if its level is greater than or equal to
287 * <tt>LogRecord</tt> into its internal buffer.
292 * buffer contents. It will return false if the <tt>LogRecord</tt> is null.