Pattern<Event, ?> pattern = Pattern.<Event>begin("start")
.next("middle").where(new SimpleCondition<Event>() {
@Override
public boolean filter(Event value) throws Exception {
return value.getName().equals("error");
}
}).followedBy("end").where(new SimpleCondition<Event>() {
@Override
public boolean filter(Event value) throws Exception {
return value.getName().equals("critical");
}
}).within(Time.seconds(10));
In this example within(Time.seconds(10)),
1、Does it mean that the data is valid for 10 seconds ?
2、Is the expiration data will be deleted after 10s ?
3、if i dont set within(Time.seconds(10)), is data always valid?data dont be detele?
4、if i dont set within(Time.seconds(10)),with more and more data, is it oom ? how to save the data?
thank your help ^^