public class ConfigurationManager extends Object
2018-Apr-04 2:24:54 PM
| 构造器和说明 |
|---|
ConfigurationManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(ConfigurationEntry entry)
Adds a new conf entry.
|
ConfigurationEntry |
get(long lastIncludedIndex) |
ConfigurationEntry |
getLastConfiguration() |
ConfigurationEntry |
getSnapshot() |
void |
setSnapshot(ConfigurationEntry snapshot) |
void |
truncatePrefix(long firstIndexKept)
[1, first_index_kept) are being discarded
|
void |
truncateSuffix(long lastIndexKept)
(last_index_kept, infinity) are being discarded
|
public boolean add(ConfigurationEntry entry)
public void truncatePrefix(long firstIndexKept)
public void truncateSuffix(long lastIndexKept)
public ConfigurationEntry getSnapshot()
public void setSnapshot(ConfigurationEntry snapshot)
public ConfigurationEntry getLastConfiguration()
public ConfigurationEntry get(long lastIncludedIndex)
Copyright © 2021. All rights reserved.