public class KeepLatestContainerOnlyPolicy extends Object implements Policy
KeepLatestOnly| Constructor and Description |
|---|
KeepLatestContainerOnlyPolicy() |
| 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 |
toString() |
public String getName()
Policypublic long getInterval()
PolicygetInterval in interface Policypublic void start()
Policypublic void stop()
Policypublic void apply(KieServerRegistry kieServerRegistry, KieServer kieServer)
PolicykieServer should be used to alter state of the kie server while kieServerRegistry
should be used to locate information to evaluate if policy can be appliedCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.