Package org.eclipse.core.runtime.jobs
Interface ISchedulableOperation
-
public interface ISchedulableOperationAn interface to mark an operation that needs anISchedulingRule.- Since:
- 3.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISchedulingRulegetSchedulingRule()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 aISchedulingRuleis returned the caller should callIJobManager.beginRule(ISchedulingRule, IProgressMonitor)before andIJobManager.endRule(ISchedulingRule)after the operation.- Returns:
- an
ISchedulingRulethat the operation will acquire in the current thread - if any. Returnsnullif no rule needed - in that case the caller should not callbeginRuleorendRule. 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
-
-