public enum NoOpSlotAllocationSnapshotPersistenceService extends Enum<NoOpSlotAllocationSnapshotPersistenceService> implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService that does nothing.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllocationSnapshot(int slotIndex)
Delete the slot allocation snapshot identified by the slot index.
|
Collection<SlotAllocationSnapshot> |
loadAllocationSnapshots()
Load all persisted slot allocation snapshots.
|
void |
persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot)
Persist the given slot allocation snapshot.
|
static NoOpSlotAllocationSnapshotPersistenceService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoOpSlotAllocationSnapshotPersistenceService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoOpSlotAllocationSnapshotPersistenceService INSTANCE
public static NoOpSlotAllocationSnapshotPersistenceService[] values()
for (NoOpSlotAllocationSnapshotPersistenceService c : NoOpSlotAllocationSnapshotPersistenceService.values()) System.out.println(c);
public static NoOpSlotAllocationSnapshotPersistenceService valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
SlotAllocationSnapshotPersistenceServicepersistAllocationSnapshot in interface SlotAllocationSnapshotPersistenceServiceslotAllocationSnapshot - slot allocation snapshot to persistIOException - if the slot allocation snapshot cannot be persistedpublic void deleteAllocationSnapshot(int slotIndex)
SlotAllocationSnapshotPersistenceServicedeleteAllocationSnapshot in interface SlotAllocationSnapshotPersistenceServiceslotIndex - identifying the slot allocation snapshot to deletepublic Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
SlotAllocationSnapshotPersistenceServiceloadAllocationSnapshots in interface SlotAllocationSnapshotPersistenceServiceCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.