/** * Remove all Exceptions from the buffer. * */ public synchronized void resetBuffer() { resetBuffer(new LinkedList()); }
/** * Set the number of Exceptions that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable the collection of Exceptions in the buffer. Note if * MonProxy is disabled exceptions will also not be put in the buffer. * */ public synchronized void setBufferSize(int newBufferSize) { if (bufferSize>newBufferSize) resetBuffer(reduceBuffer(newBufferSize)); bufferSize=newBufferSize; }
/** * Set the number of Exceptions that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable the collection of Exceptions in the buffer. Note if * MonProxy is disabled exceptions will also not be put in the buffer. * */ public synchronized void setBufferSize(int newBufferSize) { if (bufferSize>newBufferSize) resetBuffer(reduceBuffer(newBufferSize)); bufferSize=newBufferSize; }