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