code: public void reset() {
          boolean locked = false;
          try {
              locked = lock.tryLock() || lock.tryLock(5, TimeUnit.MILLISECONDS);
              if (locked) {
                  while (queue.size() > 0) {
                      queue.remove(0).recycle();
                  }
              }
          } catch (InterruptedException e) {
              if (logger.isTraceEnabled()) {
                  logger.trace("Could not acquire lock to reset jitter buffer.");
              }
          } finally {
              if (locked) {
                  lock.unlock();
              }
          }
      }
docs: Resets buffer.