Subject Re: [Firebird-Java] Invalidating Cache
Author Roman Rokytskyy
> Anyway, I would like to implement a BlockingStack class that will
> provide LIFO functionality with blocking when empty. If you can think of
> another alternative please let me know. Thanks.

What about taking the source of a LinkedQueue and adding a constructor with
a parameter specifying the behavior for insert(Object) and extract()
methods? Those seems to be the only methods working with the first/last
linked nodes. License is "public domain", we can add this code to our source
tree (and remove the dependency on concurrent.jar too).

See
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/LinkedQueue.java
for the source code.

What do you think?

Roman