Interface SlotAllocationSnapshotPersistenceService
- All Known Implementing Classes:
FileSlotAllocationSnapshotPersistenceService,NoOpSlotAllocationSnapshotPersistenceService
public interface SlotAllocationSnapshotPersistenceService
Service for persisting
SlotAllocationSnapshot.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllocationSnapshot(int slotIndex) Delete the slot allocation snapshot identified by the slot index.Load all persisted slot allocation snapshots.voidpersistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) Persist the given slot allocation snapshot.
-
Method Details
-
persistAllocationSnapshot
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
-