public boolean markFree ( ) { if ( isEmpty ( ) ) { state = TaskSlotState . FREE ; this . jobId = null ; this . allocationId = null ; return true ; } else { return false ; } }
Mark the slot as free . A slot can only be marked as free if it s empty .