public interface PropertiesReader
Modifier and Type | Interface and Description |
---|---|
static class |
PropertiesReader.VersionedProperties
Stored
Properties along with the version number. |
Modifier and Type | Method and Description |
---|---|
PropertiesReader.VersionedProperties |
read(PropertiesWatcher watcher)
Retrieves the latest
Properties file that's been registered. |
boolean |
supportsNotification() |
PropertiesReader.VersionedProperties read(PropertiesWatcher watcher) throws IOException, UnsupportedOperationException
Properties
file that's been registered.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
IOException
- if the underlying transport or storage mechanism throws an IOExceptionUnsupportedOperationException
- if the underlying implementation doesn't support notification but watcher is not null.boolean supportsNotification()
Copyright © 2018. All rights reserved.