Ejemplo n.º 1
0
 private synchronized TransactionTimestamp waitForNotification() {
   while (_queue.size() == 0) {
     synchronized (_emptynessMonitor) {
       _emptynessMonitor.notify();
     }
     Cool.wait(this);
   }
   return (TransactionTimestamp) _queue.removeFirst();
 }
Ejemplo n.º 2
0
 public void waitToEmpty() {
   synchronized (_emptynessMonitor) {
     while (_queue.size() != 0) Cool.wait(_emptynessMonitor);
   }
 }
Ejemplo n.º 3
0
 public POBox(TransactionSubscriber delegate) {
   _delegate = delegate;
   Cool.startDaemon(this);
 }