Interface LoadDataStore<T>

Type Parameters:
T - The Load data type.
All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
TableViewLoadDataStoreImpl

public interface LoadDataStore<T> extends Closeable
The load data store interface.
  • Method Details

    • pushAsync

      CompletableFuture<Void> pushAsync(String key, T loadData)
      Async push load data to store.
      Parameters:
      key - The load data key.
      loadData - The load data.
    • removeAsync

      CompletableFuture<Void> removeAsync(String key)
      Async remove load data from store.
      Parameters:
      key - The load data key to remove.
    • get

      Optional<T> get(String key)
      Get load data by key.
      Parameters:
      key - The load data key.
    • forEach

      void forEach(BiConsumer<String,T> action)
      Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
      Parameters:
      action - The action to be performed for each entry
    • entrySet

      Set<Map.Entry<String,T>> entrySet()
      Returns a Set view of the mappings contained in this map.
      Returns:
      a set view of the mappings contained in this map
    • size

      int size()
      The load data key count.
    • closeTableView

      void closeTableView() throws IOException
      Closes the table view.
      Throws:
      IOException
    • start

      void start() throws LoadDataStoreException
      Starts the data store (both producer and table view).
      Throws:
      LoadDataStoreException
    • init

      void init() throws IOException
      Inits the data store (close and start the data store).
      Throws:
      IOException
    • startTableView

      void startTableView() throws LoadDataStoreException
      Starts the table view.
      Throws:
      LoadDataStoreException
    • startProducer

      void startProducer() throws LoadDataStoreException
      Starts the producer.
      Throws:
      LoadDataStoreException
    • shutdown

      default void shutdown() throws IOException
      Shutdowns the data store.
      Throws:
      IOException