Interface IAnimatedBlockRecoveryData
- All Known Implementing Classes:
IAnimatedBlockRecoveryData.AnimatedBlockRecoveryData,IAnimatedBlockRecoveryData.EmptyRecoveryData
public sealed interface IAnimatedBlockRecoveryData
permits IAnimatedBlockRecoveryData.AnimatedBlockRecoveryData, IAnimatedBlockRecoveryData.EmptyRecoveryData
Represents an object that stores recovery data for an animated block.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRepresents an object that stores recovery data for an animated block.static final recordRepresents an empty recovery data object. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAnimatedBlockRecoveryDataAn empty recovery data object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanrecover()Attempts recovery of the animated block display.
-
Field Details
-
EMPTY
An empty recovery data object.- See Also:
-
-
Method Details
-
recover
Attempts recovery of the animated block display.This method gives the animated block the opportunity to recover from a crash or other unexpected event.
No guarantees are made about the exact behavior of this method, but as long as any kind of recovery action is performed, this method should return true. Only when this method is a no-op should it return false.
- Returns:
- True if a recovery action was performed, false otherwise.
- Throws:
RecoveryFailureException- If something prevented the recovery action from being successful.
-