update order tutorial to make suspect order rule configurable via JMX at runtime
parent
5fc8eb0895
commit
36dbf8446e
@ -0,0 +1,29 @@
|
||||
package net.benas.easyrules.samples.order;
|
||||
|
||||
import net.benas.easyrules.api.JmxManagedRule;
|
||||
|
||||
import javax.management.MXBean;
|
||||
|
||||
/**
|
||||
* Interface to make suspect order rule manageable via JMX.<br/>
|
||||
* Suspect order threshold should be changed at runtime.
|
||||
*
|
||||
* @author benas (md.benhassine@gmail.com)
|
||||
*/
|
||||
|
||||
@MXBean
|
||||
public interface SuspectOrderJmxManagedRule extends JmxManagedRule {
|
||||
|
||||
/**
|
||||
* Get the current suspect order amount threshold
|
||||
* @return current suspect order amount threshold
|
||||
*/
|
||||
float getSuspectOrderAmountThreshold();
|
||||
|
||||
/**
|
||||
* Set the suspect order amount threshold
|
||||
* @param suspectOrderAmountThreshold the new suspect order amount threshold
|
||||
*/
|
||||
void setSuspectOrderAmountThreshold(float suspectOrderAmountThreshold);
|
||||
|
||||
}
|
Loading…
Reference in New Issue