Package org.acemq.amqp.api
Interface Telemetry.Scope
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
Telemetry
An operation in progress.
Closing without reporting an outcome is treated as a failure, since an operation that neither succeeded nor failed is almost always one that threw.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
NONE
A scope that records nothing.
-
-
Method Details
-
outcome
Records how the operation ended.- Parameters:
outcome- one of the outcome values inMetricNames
-
failed
Records that the operation threw.- Parameters:
failure- what went wrong
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-