Closeable
, AutoCloseable
public 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 AutoCloseable
close
in interface Closeable
Copyright © 2020 CodeAhoy. All rights reserved.