public class EventProcessingPolicy extends Object
Constructor and Description |
---|
EventProcessingPolicy(int numRules)
Create new policy object.
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(EventProcessingPolicyRule rule)
Add new rule.
|
void |
deleteRule(EventProcessingPolicyRule rule)
Delete rule.
|
List<EventProcessingPolicyRule> |
getRules() |
void |
insertRule(EventProcessingPolicyRule rule,
int index)
Insert rule before rule at given position
|
public EventProcessingPolicy(int numRules)
numRules
- Expected number of rulespublic void addRule(EventProcessingPolicyRule rule)
rule
- Rule to addpublic void insertRule(EventProcessingPolicyRule rule, int index)
rule
- rule to insertindex
- position to insert atpublic void deleteRule(EventProcessingPolicyRule rule)
index
- zero-based indexpublic List<EventProcessingPolicyRule> getRules()
Copyright © 2016. All rights reserved.