public class ClusterInfoPropertiesReader extends Object implements PropertiesReader
PropertiesReader.VersionedProperties
Constructor and Description |
---|
ClusterInfoPropertiesReader(ClusterInfoSession session,
String path) |
Modifier and Type | Method and Description |
---|---|
PropertiesReader.VersionedProperties |
read(PropertiesWatcher watcher)
Retrieves the latest
Properties file that's been registered. |
boolean |
supportsNotification() |
public ClusterInfoPropertiesReader(ClusterInfoSession session, String path)
public PropertiesReader.VersionedProperties read(PropertiesWatcher watcher)
PropertiesReader
Properties
file that's been registered.read
in interface PropertiesReader
watcher
- if non-null the watcher will be called back when the properties change from the version provided. Upon callback the PropertiesWatcher
will be unregistered. A subsequent read will need
to be called in order to re-register for another change.PropertiesReader.VersionedProperties
public boolean supportsNotification()
supportsNotification
in interface PropertiesReader
Copyright © 2018. All rights reserved.