T - type of the resourcepublic class FileBackedRegistry<T extends Identifiable> extends AbstractRegistry<T>
T.| Modifier and Type | Class and Description |
|---|---|
static interface |
FileBackedRegistry.Reader<T>
Reader.
|
Registry.ChangeListener<T extends Identifiable>, Registry.Changes<T extends Identifiable>, Registry.Factory<T extends Identifiable>, Registry.Outcome, Registry.ReloadResult| Constructor and Description |
|---|
FileBackedRegistry(Resource configurationFile,
FileBackedRegistry.Reader<T> reader,
Predicate<Collection<T>> resourceConstraint) |
| Modifier and Type | Method and Description |
|---|---|
String |
fileName() |
CompletableFuture<Registry.ReloadResult> |
reload() |
addListener, changes, get, notifyListeners, removeListener, setpublic FileBackedRegistry(Resource configurationFile, FileBackedRegistry.Reader<T> reader, Predicate<Collection<T>> resourceConstraint)
public String fileName()
public CompletableFuture<Registry.ReloadResult> reload()
Copyright © 2013–2020 Hotels.com. All rights reserved.