C
- is the type of child Element
s to which the Strategy applies.public interface Strategy<C extends Element> extends Interruptible
Element
s are ready to be processed. It may be interrupted such that it will
indicate that no elements are available for processing. To resume normal operation Interruptible.proceed()
may be called.Modifier and Type | Method and Description |
---|---|
java.util.Collection<C> |
getCandidates(java.util.Collection<C> elements,
java.util.Collection<PodInstanceRequirement> dirtyAssets)
Returns the candidate element(s), if any, which may have work performed against them.
|
java.lang.String |
getName() |
interrupt, isInterrupted, proceed
java.util.Collection<C> getCandidates(java.util.Collection<C> elements, java.util.Collection<PodInstanceRequirement> dirtyAssets)
elements
- the elements to be examined for candidacydirtyAssets
- any asset names which already have work in progress elsewhere, which should not be returned by
this calljava.lang.String getName()