public abstract class IotaClientConfig extends Object implements IotaConfig
EnvConfig, FileConfig) have their own naming conventions
but use the same reading system through their storage object| Modifier | Constructor and Description |
|---|---|
protected |
IotaClientConfig()
Used for empty construction in
IotaDefaultConfig |
|
IotaClientConfig(Store store)
Creates a new IotaClientConfig using the provided storage method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNodes() |
protected int |
intOrNull(String key)
Reads the value from the store using the provided key
|
List<Connection> |
loadNodes(String key)
Loads nodes from a properties file based on a key.
|
protected String |
stringOrNull(String key)
Reads the value from the store using the provided key
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConnectionTimeout, getLegacyHost, getLegacyPort, getLegacyProtocol, getNodesgetDepth, getMwm, getSecurityLevel, getStoreprotected Store store
protected IotaClientConfig()
IotaDefaultConfigpublic List<Connection> loadNodes(String key)
key - protected String stringOrNull(String key)
key - the store field we are readingnullprotected int intOrNull(String key)
key - the store field we are reading0Copyright © 2019. All rights reserved.