public interface Policy
| Modifier and Type | Method and Description |
|---|---|
void |
apply(KieServerRegistry kieServerRegistry,
KieServer kieServer)
Applies given policy on kie server.
|
long |
getInterval()
Returns interval (in milliseconds) how often the policy should be applied.
|
String |
getName()
Returns unique name of the policy so it can be referenced by name
|
void |
start()
Performs operation to start the policy - is executed only once when the policy is created
|
void |
stop()
Performs operation to stop the policy - is executed only once when the policy is destroyed
|
String getName()
long getInterval()
void start()
void stop()
void apply(KieServerRegistry kieServerRegistry, KieServer kieServer)
kieServer should be used to alter state of the kie server while kieServerRegistry
should be used to locate information to evaluate if policy can be appliedkieServerRegistry - registry of the kie serverkieServer - actual instance representing kie server to perform operations on containersCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.