long function ( ) { readLock . lock ( ) ; try { if ( cumulativeCapacity . isEmpty ( ) ) { return - 1 ; } else { return cumulativeCapacity . lastKey ( ) ; } } finally { readLock . unlock ( ) ; } }
get the timestamp of the latest resource allocation concode_field_sep Lock readLock concode_elem_sep int THRESHOLD concode_elem_sep Resource ZERO_RESOURCE concode_elem_sep TreeMap<Long,Resource> cumulativeCapacity concode_elem_sep Lock writeLock concode_elem_sep Resource minAlloc concode_elem_sep ResourceCalculator resourceCalculator concode_elem_sep ReentrantReadWriteLock readWriteLock concode_field_sep Map<ReservationInterval,Resource> toIntervalMap concode_elem_sep boolean isSameAsNext concode_elem_sep long getEarliestStartTime concode_elem_sep boolean isEmpty concode_elem_sep Resource getCapacityAtTime concode_elem_sep String toString concode_elem_sep boolean isSameAsPrevious concode_elem_sep boolean addInterval concode_elem_sep String toMemJSONString concode_elem_sep boolean removeInterval