Re: Prevayler + BlockingQueue
Klaus Wuestefeld <[email protected]> Thu, 25 Aug 2016 10:16:24 -0300
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <CAMAooZEinJPnVMFn2HeRfLHu2eM_Qwy7W7bZUdCmxqzJNCJRag@mail.gmail.com> |
On Thu, Aug 25, 2016 at 5:46 AM, Attila Magyar <[email protected]> wrote: > Yeah, adding a non blocking method could work, but if I have more than one > consumers, then either some additional synchronization or polling would be > needed. You can have a blocking method that notifies one of many consumers. Java's own Object.notify() does that. https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#notify() Klaus ------------------------------------------------------------------------------ _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org