raft: add Configure

Configuration change
I mean enum solution is faster.
K. will do it for the part in this PR. The others will go with #1127