public final class StealStrategy
extends java.lang.Object
implements java.io.Serializable
StealStrategy describes a strategy, to be used by an executor, for stealing activities.
Activities can be sorted by their Context range, and an executor can have, for instance, a preference for "big" jobs or "small"
jobs, or jobs with a rank within a particular range. The strategies are described by particular opcodes, some of which have
additional attributes.| Modifier and Type | Field and Description |
|---|---|
static StealStrategy |
BIGGEST
Predefined "steal activity with highest range" strategy.
|
static StealStrategy |
SMALLEST
Predefined "steal activity with lowest range" strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode()
|
java.lang.String |
toString() |
public static final StealStrategy BIGGEST
public static final StealStrategy SMALLEST
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object