Closeable, AutoCloseablepublic final class RefreshableDataStoreProvider extends Object implements Closeable
UnlaunchHttpDataStore such that it updates itself periodically.| Constructor | Description |
|---|---|
RefreshableDataStoreProvider(UnlaunchRestWrapper restWrapper,
CountDownLatch initialDownloadDoneLatch,
AtomicBoolean downloadSuccessful,
long dataStoreRefreshDelayInSeconds) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
UnlaunchDataStore |
getDataStore() |
|
UnlaunchDataStore |
getNoOpDataStore() |
public RefreshableDataStoreProvider(UnlaunchRestWrapper restWrapper, CountDownLatch initialDownloadDoneLatch, AtomicBoolean downloadSuccessful, long dataStoreRefreshDelayInSeconds)
public UnlaunchDataStore getNoOpDataStore()
public UnlaunchDataStore getDataStore()
public void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2020 CodeAhoy. All rights reserved.