conversant / disruptor

Disruptor BlockingQueue
Apache License 2.0
311 stars 47 forks source link

About FixedStack stack size is exceeded, the eldest objects are overwritten. #26

Closed tcmot closed 3 years ago

tcmot commented 3 years ago

public class FixedStack implements Stack { // implement a ring buffer to make sure that it is always safe to push an object into the stack, // if stack size is exceeded, the eldest objects are overwritten

This feature is not implemented?

I found that the eldest objects were not overwritten.

jac18281828 commented 3 years ago

Yes, it looks like it works properly. The comment is obsolete. Thanks for the feedback!