@InterfaceAudience.Private public class DurationInfo extends Duration implements AutoCloseable
close()
call.
This allows it to be used in a try-with-resources clause, and have the
duration automatically logged.Constructor and Description |
---|
DurationInfo(org.slf4j.Logger log,
String format,
Object... args)
Create the duration text from a
String.format() code call. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
toString() |
public void close()
close
in interface AutoCloseable
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.