boolean function ( QueryId arg0 , long arg1 ) { checkArgument ( arg1 >= 0 , "srini_string" ) ; if ( freeBytes - arg1 < 0 ) { return false ; } freeBytes -= arg1 ; if ( arg1 != 0 ) { queryMemoryReservations . merge ( arg0 , arg1 , Long :: sum ) ; } return true ; }
try to reserve the given number of bytes . return value indicates whether the caller may use the requested memory . concode_field_sep Map<QueryId,Long> queryMemoryReservations concode_elem_sep SettableFuture<?> future concode_elem_sep MemoryPoolId id concode_elem_sep long maxBytes concode_elem_sep long freeBytes concode_field_sep MemoryPoolInfo getInfo concode_elem_sep ListenableFuture<?> reserve concode_elem_sep long getFreeBytes concode_elem_sep MemoryPoolId getId concode_elem_sep long getMaxBytes concode_elem_sep String toString concode_elem_sep void free