boolean lockShared ( final Integer permit , final long timeout , final TimeUnit unit ) { boolean result = false ; try { result = lockSharedInterruptibly ( permit , timeout , unit ) ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; } return result ; }
Attempts shared acquisition with a max wait time .