public abstract class RefreshingProperties extends ReadonlyProperties implements Executable
| 限定符和类型 | 字段和说明 |
|---|---|
protected Properties |
delegate |
private static long |
serialVersionUID |
private Timer |
timer |
defaults| 构造器和说明 |
|---|
RefreshingProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearInterval() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected abstract Properties |
createObject() |
Set<Map.Entry<Object,Object>> |
entrySet() |
boolean |
execute() |
Object |
get(Object key) |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
Set<Object> |
keySet() |
void |
list(PrintStream out) |
void |
list(PrintWriter out) |
protected void |
onChange(Properties lastest,
Properties current) |
Enumeration<?> |
propertyNames() |
boolean |
refresh() |
void |
setInterval(long interval,
TimeUnit timeUnit) |
int |
size() |
void |
store(File outputFile,
String comments) |
void |
store(OutputStream out,
String comments) |
void |
store(Writer writer,
String comments) |
void |
storeToXML(OutputStream os,
String comment) |
void |
storeToXML(OutputStream os,
String comment,
String encoding) |
Set<String> |
stringPropertyNames() |
Map<String,String> |
toMap() |
Map<String,String> |
toMap(String substr,
MatchMode mode) |
String |
toString() |
Collection<Object> |
values() |
load, load, loadFromXML, put, putIfAbsent, save, setPropertyclear, clone, compute, computeIfAbsent, computeIfPresent, contains, elements, equals, forEach, getOrDefault, hashCode, isEmpty, keys, merge, putAll, rehash, remove, remove, replace, replace, replaceAllonCancellation, onErrorprivate static final long serialVersionUID
protected Properties delegate
private Timer timer
protected abstract Properties createObject() throws Exception
Exceptionprotected void onChange(Properties lastest, Properties current)
public boolean containsValue(Object value)
containsValue 在接口中 Map<Object,Object>containsValue 在类中 Hashtable<Object,Object>public boolean containsKey(Object key)
containsKey 在接口中 Map<Object,Object>containsKey 在类中 Hashtable<Object,Object>public Collection<Object> values()
public void store(File outputFile, String comments) throws IOException
IOExceptionpublic void store(Writer writer, String comments) throws IOException
store 在类中 PropertiesIOExceptionpublic void store(OutputStream out, String comments) throws IOException
store 在类中 PropertiesIOExceptionpublic void storeToXML(OutputStream os, String comment) throws IOException
storeToXML 在类中 PropertiesIOExceptionpublic void storeToXML(OutputStream os, String comment, String encoding) throws IOException
storeToXML 在类中 PropertiesIOExceptionpublic String getProperty(String key)
getProperty 在类中 Propertiespublic String getProperty(String key, String defaultValue)
getProperty 在类中 Propertiespublic Enumeration<?> propertyNames()
propertyNames 在类中 Propertiespublic Set<String> stringPropertyNames()
stringPropertyNames 在类中 Propertiespublic void list(PrintStream out)
list 在类中 Propertiespublic void list(PrintWriter out)
list 在类中 Propertiespublic boolean execute()
execute 在接口中 Executablepublic void setInterval(long interval,
TimeUnit timeUnit)
throws Exception
Exceptionpublic void clearInterval()
Copyright © 2020. All rights reserved.