Interface SlotAllocationSnapshotPersistenceService

All Known Implementing Classes:
FileSlotAllocationSnapshotPersistenceService, NoOpSlotAllocationSnapshotPersistenceService

public interface SlotAllocationSnapshotPersistenceService
Service for persisting SlotAllocationSnapshot.
  • Method Details

    • 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