public List < TaskLock > findLocksForTask ( final Task task ) { giant . lock ( ) ; try { return Lists . transform ( findLockPossesForTask ( task ) , new Function < TaskLockPosse , TaskLock > ( ) { @ Override public TaskLock apply ( TaskLockPosse taskLockPosse ) { return taskLockPosse . getTaskLock ( ) ; } } ) ; } finally { giant . unlock ( ) ; } }
Return the currently - active locks for some task .