Interface CleanableAction

All Known Subinterfaces:
DirtyAction<T>, DirtyVoidAction
All Known Implementing Classes:
ConstructorAction

public interface CleanableAction
An implementation for Actions which provide a clean-up method to be called when the action is deleted from the history.
Author:
Lehlogonolo Poole
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cleans up any resources associated with the action.
  • Method Details

    • cleanup

      void cleanup() throws Exception
      Cleans up any resources associated with the action. This method is called when the action is removed from the history, for example, when the history size limit is exceeded or the action is undone and then overwritten.
      Throws:
      Exception - if an error occurs during clean-up.