public static int producerWindowLength ( final int termBufferLength , final int defaultTermWindowLength ) { int termWindowLength = termBufferLength / 2 ; if ( 0 != defaultTermWindowLength ) { termWindowLength = Math . min ( defaultTermWindowLength , termWindowLength ) ; } return termWindowLength ; }
How far ahead a producer can get from a consumer position .