* If the inserted state value's type does not match what is
* already assigned to this attribute.
*/
- void modifyAttribute(long t, ITmfStateValue value, int attributeQuark)
+ void modifyAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
throws StateValueTypeException;
/**
* If the attribute 'attributeQuark' already exists, but is not
* of integer type.
*/
- void pushAttribute(long t, ITmfStateValue value, int attributeQuark)
+ void pushAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
throws StateValueTypeException;
/**
* know how to handle it.
*/
void closeHistory(long endTime);
+
+ /**
+ * Delete any generated files or anything that might have been created by
+ * the history backend (either temporary or save files). By calling this, we
+ * return to the state as it was before ever building the history.
+ *
+ * You might not want to call automatically if, for example, you want an
+ * index file to persist on disk. This could be limited to actions
+ * originating from the user.
+ *
+ * FIXME Change to abstract for 3.0
+ *
+ * @since 2.1
+ */
+ default void removeFiles() {
+ // FIXME Change to abstract for 3.0
+ }
}