Example #1
0
 /**
  * Set add wait timeout (default 10000 msec)
  *
  * @param timeout
  */
 public void setAddWaitTimeout(long timeout) {
   addWaitTimeout = timeout;
   lock.setAddWaitTimeout(addWaitTimeout);
 }
Example #2
0
 /** Generate Queue SingleRemoveSynchronizedAddLock and set add and wait Timeouts */
 public FastQueue() {
   lock = new SingleRemoveSynchronizedAddLock();
   lock.setAddWaitTimeout(addWaitTimeout);
   lock.setRemoveWaitTimeout(removeWaitTimeout);
 }