org.omnaest.utils.time
Class DurationCaptureCallableDecorator<V>
java.lang.Object
org.omnaest.utils.time.DurationCaptureCallableDecorator<V>
- All Implemented Interfaces:
- Callable<V>
public class DurationCaptureCallableDecorator<V>
- extends Object
- implements Callable<V>
Callable decorator which captures the duration of the Callable.call() method
- Author:
- Omnaest
- See Also:
getDurationCapture()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
durationCapture
protected DurationCapture durationCapture
callable
protected Callable<V> callable
DurationCaptureCallableDecorator
public DurationCaptureCallableDecorator(Callable<V> callable)
call
public V call()
throws Exception
- Specified by:
call in interface Callable<V>
- Throws:
Exception
getDurationInMilliseconds
public long getDurationInMilliseconds()
getDurationCapture
public DurationCapture getDurationCapture()
Copyright © 2013. All Rights Reserved.