Hi Mark,

> Just so we understand what you are proposing:
> 
> 1) A patch to CyclicBuffer that when resized to a smaller 
> buffer size, keeps the newest messages instead of the oldest.
> 2) A new BufferAppender.
> 
> Have I got that right?

Yep.

> So, please post your code.

Here it is. I wasn't able to test the change to CyclicBuffer though.
I made the class thread safe so the buffer can be resized while there are
new messaged added (this is untested too).

Regards,

Ole
-- 
Ole Bulbuk              Tel.:   0331/74759/60
Ernst Basler + Partner  Fax:    0331/74759/90
Tuchmacherstr. 47       E-Mail: mailto:[EMAIL PROTECTED]
14482 Potsdam           WWW:    http://www.ebp.de

Attachment: =?utf-8?B?QnVmZmVyQXBwZW5kZXIuamF2YQ==?=
Description: Binary data

Attachment: =?utf-8?B?Q3ljbGljQnVmZmVyLmphdmE=?=
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to