Package org.eclipse.core.runtime.jobs
Interface ISchedulableOperation
-
public interface ISchedulableOperation
An interface to mark an operation that needs anISchedulingRule
.- Since:
- 3.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISchedulingRule
getSchedulingRule()
Gives the caller a hint whether this operation will acquire a rule to proceed in the current thread.
-
-
-
Method Detail
-
getSchedulingRule
ISchedulingRule getSchedulingRule()
Gives the caller a hint whether this operation will acquire a rule to proceed in the current thread. If aISchedulingRule
is returned the caller should callIJobManager.beginRule(ISchedulingRule, IProgressMonitor)
before andIJobManager.endRule(ISchedulingRule)
after the operation.- Returns:
- an
ISchedulingRule
that the operation will acquire in the current thread - if any. Returnsnull
if no rule needed - in that case the caller should not callbeginRule
orendRule
. As this method returns only a hint the operation can not assume that the caller already acquired the rule. The operation still has to acquire it - which will lead to a nested rule. - Since:
- 3.13
-
-