Package com.globalmentor.model
Interface Operation
-
- All Superinterfaces:
java.lang.Runnable
- All Known Implementing Classes:
AbstractOperation
,AbstractReadWriteLockOperation
,RunnableOperation
public interface Operation extends java.lang.Runnable
Represents some operation that can be executed. In essence this class is a lightweight task encapsulation. The operation can be canceled, which prevents its execution if execution has not yet started. Operation execution is initiated by a call toRunnable.run()
.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Cancels the operation.boolean
isCanceled()
-