public Builder withSessionTimeout(Duration sessionTimeout){
  Assert.argNot(sessionTimeout.isNegative() || sessionTimeout.isZero(),"sessionTimeout must be positive");
  Assert.argNot(sessionTimeout.toMillis() <= electionTimeout.toMillis(),"sessionTimeout must be greater than electionTimeout");
  this.sessionTimeout=Assert.notNull(sessionTimeout,"sessionTimeout");
  return this;
}

public Builder withSessionTimeout ( Duration sessionTimeout ) { Assert . argNot ( sessionTimeout . isNegative ( ) || sessionTimeout . isZero ( ) , "sessionTimeout must be positive" ) ; Assert . argNot ( sessionTimeout . toMillis ( ) <= electionTimeout . toMillis ( ) , "sessionTimeout must be greater than electionTimeout" ) ; this . sessionTimeout = Assert . notNull ( sessionTimeout , "sessionTimeout" ) ; return this ; }
sets the raft session timeout , returning the raft configuration for method chaining .
