public abstract class AbstractEquivalentScheduleStore extends Object implements EquivalentScheduleStore
EquivalentScheduleStore which resolves the necessary Content
for ScheduleUpdates and EquivalenceUpdates.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
AbstractEquivalentScheduleStore(EquivalenceGraphStore graphStore,
ContentResolver contentStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
updateEquivalences(EquivalenceGraphUpdate update)
Update equivalences for particular items according to an
EquivalenceUpdate. |
protected abstract void |
updateEquivalentContent(org.atlasapi.media.entity.Publisher publisher,
Broadcast bcast,
EquivalenceGraph graph,
com.google.common.collect.ImmutableSet<Item> content) |
void |
updateSchedule(ScheduleUpdate update)
Updates the schedule and removes stale schedule entries according to a
ScheduleUpdate such that it can be retrieved through
#resolveSchedules. |
protected abstract void |
writeSchedule(ScheduleUpdate update,
Map<ScheduleRef.Entry,EquivalentScheduleEntry> content) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveSchedulespublic AbstractEquivalentScheduleStore(EquivalenceGraphStore graphStore, ContentResolver contentStore)
public final void updateSchedule(ScheduleUpdate update) throws WriteException
EquivalentScheduleWriterUpdates the schedule and removes stale schedule entries according to a
ScheduleUpdate such that it can be retrieved through
#resolveSchedules.
updateSchedule in interface EquivalentScheduleWriterupdate - - the update to applyWriteException - - if there is an error during updating the schedule.protected abstract void writeSchedule(ScheduleUpdate update, Map<ScheduleRef.Entry,EquivalentScheduleEntry> content) throws WriteException
WriteExceptionpublic final void updateEquivalences(EquivalenceGraphUpdate update) throws WriteException
EquivalentScheduleWriterUpdate equivalences for particular items according to an
EquivalenceUpdate.
updateEquivalences in interface EquivalentScheduleWriterupdate - - the update to apply.WriteException - - if there is an error during updating the schedule.protected abstract void updateEquivalentContent(org.atlasapi.media.entity.Publisher publisher,
Broadcast bcast,
EquivalenceGraph graph,
com.google.common.collect.ImmutableSet<Item> content)
throws WriteException
WriteExceptionCopyright © 2014. All rights reserved.