public class SpecificOriginRetentionPolicy extends AbstractOriginRetentionPolicy
OriginRetentionPolicyKind.SPECIFIC
. Two specific
retention policies are united by uniting the underlying sets. Instead of calculating the union set,
however, the two policies are chained together using an implicit union/or operator to provide a
higher flexibility.Modifier | Constructor and Description |
---|---|
protected |
SpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins) |
Modifier and Type | Method and Description |
---|---|
static SpecificOriginRetentionPolicy |
createInstance(java.util.Set<?> selectedOrigins)
Factory method for the specific origin retention policy.
|
boolean |
dependsOn(IOriginRetentionPolicy policy)
Checks whether this origin retention policy depends on the given policy.
|
<T> void |
handleOrigin(AbstractGraphElement<T> element,
T origin)
Handles a given origin for the given graph element.
|
IOriginRetentionPolicy |
uniteWith(IOriginRetentionPolicy other)
Unites this retention policy with another one and returns the resulting policy.
|
getKind, isCompatibleWith
protected SpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins)
public boolean dependsOn(IOriginRetentionPolicy policy)
AbstractOriginRetentionPolicy
dependsOn
in interface IOriginRetentionPolicy
dependsOn
in class AbstractOriginRetentionPolicy
policy
- The policy to check for dependenciesTrue
if the policy depends on the given policy, false
otherwisepublic IOriginRetentionPolicy uniteWith(IOriginRetentionPolicy other)
IOriginRetentionPolicy
other
- The retention policy to unite this policy withpublic <T> void handleOrigin(AbstractGraphElement<T> element, T origin)
IOriginRetentionPolicy
T
- The type of the entity within the graph element.element
- The graph element to handle the origin fororigin
- The origin to handlepublic static SpecificOriginRetentionPolicy createInstance(java.util.Set<?> selectedOrigins)
selectedOrigins
- The origins to retainCopyright 2021 Kieker Project, http://kieker-monitoring.net