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