Class EtcdAsConfigConnection
- java.lang.Object
-
- org.lable.oss.dynamicconfig.provider.etcd.EtcdAsConfigConnection
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ConfigurationConnection
public class EtcdAsConfigConnection extends Object implements ConfigurationConnection
-
-
Constructor Summary
Constructors Constructor Description EtcdAsConfigConnection(String[] cluster, String namespace, ConfigChangeListener changeListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidlisten(String name)InputStreamload(String name)voidstopListening(String name)
-
-
-
Constructor Detail
-
EtcdAsConfigConnection
public EtcdAsConfigConnection(String[] cluster, String namespace, ConfigChangeListener changeListener)
-
-
Method Detail
-
listen
public void listen(String name)
- Specified by:
listenin interfaceConfigurationConnection
-
stopListening
public void stopListening(String name)
- Specified by:
stopListeningin interfaceConfigurationConnection
-
load
public InputStream load(String name) throws ConfigurationException
- Specified by:
loadin interfaceConfigurationConnection- Throws:
ConfigurationException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-