public class FeedDataStoreManager extends Object implements DataStoreObserver
InMemoryDataStore and according to
its CombinedFeed.getRefreshPeriod() property is able to give an entity
into the queue for another processing which is dedicated to consumers.| Constructor and Description |
|---|
FeedDataStoreManager(FeedTaskFactory taskFactory) |
FeedDataStoreManager(FeedTaskFactory taskFactory,
ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
remove(String key)
Method updates an inner state of an instance of this interface
using a provided key of the removed entity.
|
void |
removeAll(Collection<String> keys)
Method updates an inner state of an instance of this interface
using a provided collection of keys of the removed entities.
|
void |
save(Serializable entity)
Method updates an inner state of an instance of this interface
using a provided saved entity.
|
void |
saveAll(Collection<Serializable> entities)
Method updates an inner state of an instance of this interface
using a provided collection of saved entities.
|
public FeedDataStoreManager(FeedTaskFactory taskFactory)
public FeedDataStoreManager(FeedTaskFactory taskFactory, ScheduledExecutorService scheduler)
public void save(Serializable entity)
DataStoreObserversave in interface DataStoreObserverentity - newly saved entitypublic void saveAll(Collection<Serializable> entities)
DataStoreObserversaveAll in interface DataStoreObserverentities - list of newly saved entitiespublic void remove(String key)
DataStoreObserverremove in interface DataStoreObserverkey - removed entitypublic void removeAll(Collection<String> keys)
DataStoreObserverremoveAll in interface DataStoreObserverkeys - collection of removed entitiesCopyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.