Class MetricsExecutionListener
- java.lang.Object
-
- org.camunda.bpm.engine.impl.metrics.parser.MetricsExecutionListener
-
- All Implemented Interfaces:
DelegateListener<DelegateExecution>
,ExecutionListener
public class MetricsExecutionListener extends java.lang.Object implements ExecutionListener
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Function<DelegateExecution,java.lang.Boolean>
condition
protected java.lang.String
metricsName
-
Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
-
-
Constructor Summary
Constructors Constructor Description MetricsExecutionListener(java.lang.String metricsName)
MetricsExecutionListener(java.lang.String metricsName, java.util.function.Function<DelegateExecution,java.lang.Boolean> condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notify(DelegateExecution execution)
-
-
-
Field Detail
-
metricsName
protected java.lang.String metricsName
-
condition
protected java.util.function.Function<DelegateExecution,java.lang.Boolean> condition
-
-
Constructor Detail
-
MetricsExecutionListener
public MetricsExecutionListener(java.lang.String metricsName)
-
MetricsExecutionListener
public MetricsExecutionListener(java.lang.String metricsName, java.util.function.Function<DelegateExecution,java.lang.Boolean> condition)
-
-
Method Detail
-
notify
public void notify(DelegateExecution execution) throws java.lang.Exception
- Specified by:
notify
in interfaceDelegateListener<DelegateExecution>
- Specified by:
notify
in interfaceExecutionListener
- Throws:
java.lang.Exception
-
-