public class CountingFilter extends Filter
context| Constructor and Description |
|---|
CountingFilter() |
| Modifier and Type | Method and Description |
|---|---|
FilterReply |
decide(Object event)
If the decision is
, then the event will be
dropped. |
String |
getDomain() |
long |
getTotal() |
void |
setDomain(String domain) |
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic FilterReply decide(Object event)
FilterFilterReply.DENY, then the event will be
dropped. If the decision is FilterReply.NEUTRAL, then the next
filter, if any, will be invoked. If the decision is
FilterReply.ACCEPT then the event will be logged without
consulting with other filters in the chain.public long getTotal()
public void start()
public String getDomain()
public void setDomain(String domain)
Copyright © 2005–2022 QOS.ch. All rights reserved.