public interface ISchedulingRule
Clients may implement this interface.
|Modifier and Type||Method and Description|
Returns whether this scheduling rule completely contains another scheduling rule.
Returns whether this scheduling rule is compatible with another scheduling rule.
boolean contains(ISchedulingRule rule)
Implementations of this method must obey the rules of a partial order relation
on the set of all scheduling rules. In particular, implementations must be reflexive
(a.contains(a) is always true), antisymmetric (a.contains(b) and b.contains(a) iff a.equals(b),
and transitive (if a.contains(b) and b.contains(c), then a.contains(c)). Implementations
of this method must return
false when compared to a rule they
know nothing about.
rule- the rule to check for containment
trueif this rule contains the given rule, and
boolean isConflicting(ISchedulingRule rule)
trueis returned, then no job with this rule will be run at the same time as a job with the conflicting rule. If
falseis returned, then the job manager is free to run jobs with these rules at the same time.
Implementations of this method must be reflexive, symmetric, and consistent,
and must return
false when compared to a rule they know
This method must return true if calling
the same rule also returns true. This is required because it would otherwise
allow two threads to be running concurrently with the same rule.
rule- the rule to check for conflicts
trueif the rule is conflicting, and
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.