T - public abstract class AbstractFilterWrapper<T> extends Object implements FilterWrapper<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alwaysReset |
protected boolean |
notifyOnChangeOnly |
protected boolean |
resetImmediate |
| Constructor and Description |
|---|
AbstractFilterWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Wrapper<T> |
alwaysReset(boolean alwaysReset)
Reset a stateful node after every execution cycle, without the need for a
an external
Wrapper.resetNotifier(java.lang.Object). |
Wrapper<T> |
immediateReset(boolean immediateReset)
Controls reset timing policy for stateful nodes.
|
boolean |
isAlwaysReset() |
boolean |
isNotifyOnChangeOnly() |
boolean |
isResetImmediate() |
Wrapper<T> |
notifyOnChange(boolean notifyOnChange)
Controls the notification policy of event notification to child nodes for
this stream node.
|
void |
setAlwaysReset(boolean alwaysReset) |
void |
setNotifyOnChangeOnly(boolean notifyOnChangeOnly) |
void |
setResetImmediate(boolean resetImmediate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelseStreamconsole, event, eventClass, filter, filter, forEach, forEach, id, map, map, mapDouble, mapInt, mapLong, notiferMerge, notifierOverride, publishAndReset, push, resetNotifierprotected boolean notifyOnChangeOnly
protected boolean resetImmediate
protected boolean alwaysReset
public Wrapper<T> notifyOnChange(boolean notifyOnChange)
WrapperThis can be useful if a single notification of a breach is required and subsequent continued breaches are swallowed, for example this can prevent logging spamming when combined with filters.
notifyOnChange in interface Wrapper<T>notifyOnChange - false = notify always. true = notify on change onlypublic Wrapper<T> immediateReset(boolean immediateReset)
WrapperWrapper.resetNotifier(java.lang.Object) or Wrapper.alwaysReset(boolean). The timing policy has the following
behaviour:
immediateReset in interface Wrapper<T>immediateReset - reset timing policypublic Wrapper<T> alwaysReset(boolean alwaysReset)
WrapperWrapper.resetNotifier(java.lang.Object).
Wrapper.resetNotifier(java.lang.Object)
alwaysReset in interface Wrapper<T>alwaysReset - - reset policy for stateful nodespublic boolean isNotifyOnChangeOnly()
public void setNotifyOnChangeOnly(boolean notifyOnChangeOnly)
public boolean isResetImmediate()
public void setResetImmediate(boolean resetImmediate)
public boolean isAlwaysReset()
public void setAlwaysReset(boolean alwaysReset)
Copyright © 2019. All rights reserved.