public interface Trigger
Modifier and Type | Method and Description |
---|---|
boolean |
apply(long current)
Based on current value, returns true if trigger is applied else false.
|
Trigger |
clone()
Return cloned copy of this trigger
|
Action |
getAction()
Return the action that will get executed when trigger expression evaluates to true
|
Expression |
getExpression()
Get trigger expression
|
String |
getName()
Return the name of the trigger
|
String |
getViolationMsg()
Get error message set during trigger violation.
|
void |
setViolationMsg(String violationMsg)
Set trigger violation message.
|
boolean apply(long current)
current
- - current valueExpression getExpression()
String getName()
Action getAction()
Trigger clone()
void setViolationMsg(String violationMsg)
apply(long)
returns false, this can be used
to set message for trigger violation which will be sent as response to clients.violationMsg
- violation messageString getViolationMsg()
Copyright © 2022 The Apache Software Foundation. All rights reserved.