@NotThreadSafe public static final class Configuration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
addClusterProperty(String name,
Object value,
Source source)
Adds a cluster level property.
|
void |
addPathProperty(String path,
String name,
String value)
Adds a path level property.
|
Configuration |
build() |
void |
setClusterConfHash(String hash)
Sets hash of path configurations.
|
void |
setClusterConfLastUpdateTime(long lastUpdateTime)
Sets cluster config last update time.
|
void |
setPathConfHash(String hash)
Sets hash of path configurations.
|
void |
setPathConfLastUpdateTime(long lastUpdateTime)
Sets path config last update time.
|
public void addClusterProperty(String name, @Nullable Object value, Source source)
name
- property namevalue
- property valuesource
- property sourcepublic void addPathProperty(String path, String name, String value)
path
- the pathname
- property namevalue
- property valuepublic void setClusterConfHash(String hash)
hash
- the hashpublic void setPathConfHash(String hash)
hash
- the hashpublic void setClusterConfLastUpdateTime(long lastUpdateTime)
lastUpdateTime
- the last update timepublic void setPathConfLastUpdateTime(long lastUpdateTime)
lastUpdateTime
- the last update timepublic Configuration build()
Copyright © 2023. All Rights Reserved.