Package io.microraft
Class HoconRaftConfigParser
java.lang.Object
io.microraft.HoconRaftConfigParser
RaftConfig parser for HOCON files-
Method Summary
Modifier and TypeMethodDescriptionstatic RaftConfigparseConfig(com.typesafe.config.Config config) Parses the given config object to populate RaftConfig
-
Method Details
-
parseConfig
Parses the given config object to populate RaftConfig- Returns:
- the created RaftConfig object
- Throws:
NullPointerException- if the given config object is nullIllegalArgumentException- if the given config object has no "raft.*" fieldcom.typesafe.config.ConfigException.WrongType- if a configuration value has wrong type
-