Interface SlotAllocationSnapshotPersistenceService
-
- All Known Implementing Classes:
FileSlotAllocationSnapshotPersistenceService,NoOpSlotAllocationSnapshotPersistenceService
public interface SlotAllocationSnapshotPersistenceServiceService for persistingSlotAllocationSnapshot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteAllocationSnapshot(int slotIndex)Delete the slot allocation snapshot identified by the slot index.Collection<SlotAllocationSnapshot>loadAllocationSnapshots()Load all persisted slot allocation snapshots.voidpersistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot)Persist the given slot allocation snapshot.
-
-
-
Method Detail
-
persistAllocationSnapshot
void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
Persist the given slot allocation snapshot.- Parameters:
slotAllocationSnapshot- slot allocation snapshot to persist- Throws:
IOException- if the slot allocation snapshot cannot be persisted
-
deleteAllocationSnapshot
void deleteAllocationSnapshot(int slotIndex)
Delete the slot allocation snapshot identified by the slot index.- Parameters:
slotIndex- identifying the slot allocation snapshot to delete
-
loadAllocationSnapshots
Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
Load all persisted slot allocation snapshots.- Returns:
- loaded slot allocations snapshots
-
-