public StreamCutReferenceRecord findStreamCutReferenceForTime ( long time ) { int beforeIndex = getGreatestLowerBound ( this , time , StreamCutReferenceRecord :: getRecordingTime ) ; if ( beforeIndex < 0 ) { return null ; } return retentionRecords . get ( beforeIndex ) ; }
Find retention record on or before the given time .