4

For example, a capped list which automatically delete the first inserted items if the total items pass the specified amount? Any builtin or 3rd party support?

Colin 't Hart
  • 7,372
  • 3
  • 28
  • 51
user496949
  • 83,087
  • 147
  • 309
  • 426
  • possible duplicate of [Is there a bounded non-blocking Collection in Java?](http://stackoverflow.com/questions/1290112/is-there-a-bounded-non-blocking-collection-in-java) – BalusC Apr 12 '11 at 02:23

2 Answers2

1

Answered here in this Stackoverflow question:

Is there a bounded non-blocking Collection in Java?

Community
  • 1
  • 1
Chris K
  • 11,996
  • 7
  • 37
  • 65
1

It would be fairly trivial to implement this as a wrapper for any of the queue type java collections.

Brian Roach
  • 76,169
  • 12
  • 136
  • 161