Interface LoadDataStore<T>
- Type Parameters:
T- The Load data type.
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
TableViewLoadDataStoreImpl
The load data store interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the table view.entrySet()Returns a Set view of the mappings contained in this map.voidforEach(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.Get load data by key.voidinit()Inits the data store (close and start the data store).Async push load data to store.removeAsync(String key) Async remove load data from store.default voidshutdown()Shutdowns the data store.intsize()The load data key count.voidstart()Starts the data store (both producer and table view).voidStarts the producer.voidStarts the table view.
-
Method Details
-
pushAsync
Async push load data to store.- Parameters:
key- The load data key.loadData- The load data.
-
removeAsync
Async remove load data from store.- Parameters:
key- The load data key to remove.
-
get
Get load data by key.- Parameters:
key- The load data key.
-
forEach
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
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
Closes the table view.- Throws:
IOException
-
start
Starts the data store (both producer and table view).- Throws:
LoadDataStoreException
-
init
Inits the data store (close and start the data store).- Throws:
IOException
-
startTableView
Starts the table view.- Throws:
LoadDataStoreException
-
startProducer
Starts the producer.- Throws:
LoadDataStoreException
-
shutdown
Shutdowns the data store.- Throws:
IOException
-