public enum NoOpSlotAllocationSnapshotPersistenceService extends Enum<NoOpSlotAllocationSnapshotPersistenceService> implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService that does nothing.| 枚举常量和说明 |
|---|
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static NoOpSlotAllocationSnapshotPersistenceService[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
SlotAllocationSnapshotPersistenceServicepersistAllocationSnapshot 在接口中 SlotAllocationSnapshotPersistenceServiceslotAllocationSnapshot - slot allocation snapshot to persistIOException - if the slot allocation snapshot cannot be persistedpublic void deleteAllocationSnapshot(int slotIndex)
SlotAllocationSnapshotPersistenceServicedeleteAllocationSnapshot 在接口中 SlotAllocationSnapshotPersistenceServiceslotIndex - identifying the slot allocation snapshot to deletepublic Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
SlotAllocationSnapshotPersistenceServiceloadAllocationSnapshots 在接口中 SlotAllocationSnapshotPersistenceServiceCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.