SegmentManager commitIndex(long commitIndex){
  this.commitIndex=Math.max(this.commitIndex,commitIndex);
  return this;
}

SegmentManager commitIndex ( long commitIndex ) { this . commitIndex = Math . max ( this . commitIndex , commitIndex ) ; return this ; }
sets the log commit index .
