Subject | Re: [Firebird-Java] Invalidating Cache |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-06-06T21:28:31Z |
> Anyway, I would like to implement a BlockingStack class that willWhat about taking the source of a LinkedQueue and adding a constructor with
> provide LIFO functionality with blocking when empty. If you can think of
> another alternative please let me know. Thanks.
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