Class RefreshableDataStoreProvider

java.lang.Object
io.unlaunch.store.RefreshableDataStoreProvider
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public final class RefreshableDataStoreProvider
extends java.lang.Object
implements java.io.Closeable
Provides a singleton instance of the UnlaunchHttpDataStore such that it updates itself periodically.
Author:
umermansoor
  • Constructor Summary

    Constructors 
    Constructor Description
    RefreshableDataStoreProvider​(UnlaunchRestWrapper restWrapper, java.util.concurrent.CountDownLatch initialDownloadDoneLatch, java.util.concurrent.atomic.AtomicBoolean downloadSuccessful, long dataStoreRefreshDelayInSeconds)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    UnlaunchDataStore getDataStore()  
    UnlaunchDataStore getNoOpDataStore()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait