code: public void setLockTimeout(int timeout, TimeUnit unit) {
          if (timeout < 0 || unit == null) {
              throw new IllegalArgumentException();
          }
          mLockTimeout = timeout;
          mLockTimeoutUnit = unit;
      }
docs: Set the lock timeout. Default value is 500 milliseconds.