@Inherited @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Counted
recordFailuresOnly() to true would instruct the corresponding aspect
to only record the failed attempts.CountedAspect| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
An optional description for what the underlying counter is going to record.
|
boolean |
recordFailuresOnly
By default, both failed and successful attempts are recorded.
|
String |
value
Represents the metric name for the to-be-recorded counters.
|
public abstract String value
public abstract boolean recordFailuresOnly
true in
order to only record failed attempts.public abstract String description
Copyright © 2020 LeanCloud. All rights reserved.