Package org.omegat.core.threads
Interface IAutoSave
- All Known Implementing Classes:
SaveThread
public interface IAutoSave
Interface for support project autosaving.
-
Method Summary
-
Method Details
-
disable
void disable()Disable autosaving. Required when project loading or saving time. When project closed, autosaving also disabled. -
enable
void enable()Enable autosaving. -
fin
default void fin()Terminates the thread execution and releases associated resources.This method signals the thread to stop by setting the running flag to false and ensures that all waiting threads are notified. A notification is sent on the lock object to release any threads waiting on it. Afterward, it attempts to join the thread, waiting a duration based on the wait interval to allow the thread completion. If the join is interrupted, the interrupt status is restored.
-