improve long entry calculation
This commit is contained in:
@ -59,6 +59,14 @@ public class EsperProcessor implements TickProcessor {
|
||||
// addLogStatement("LogStream");
|
||||
|
||||
addLogStreamHandler();
|
||||
|
||||
// respond to long entry events
|
||||
addStatement("select * from LongEntryDistinct",
|
||||
(newData, oldData) -> {
|
||||
log.debug("Long entry triggered: {} at {}",
|
||||
newData[0].get("current"),
|
||||
newData[0].get("time"));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user