org.omnaest.utils.time
Class DurationCaptureRunnableDecorator

java.lang.Object
  extended by org.omnaest.utils.time.DurationCaptureRunnableDecorator
All Implemented Interfaces:
Runnable

public class DurationCaptureRunnableDecorator
extends Object
implements Runnable

Runnable decorator which captures the duration of the Runnable.run() method

Author:
Omnaest
See Also:
getDurationCapture()

Field Summary
protected  DurationCapture durationCapture
           
protected  Runnable runnable
           
 
Constructor Summary
DurationCaptureRunnableDecorator(Runnable runnable)
           
 
Method Summary
 DurationCapture getDurationCapture()
           
 long getDurationInMilliseconds()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

durationCapture

protected DurationCapture durationCapture

runnable

protected Runnable runnable
Constructor Detail

DurationCaptureRunnableDecorator

public DurationCaptureRunnableDecorator(Runnable runnable)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getDurationInMilliseconds

public long getDurationInMilliseconds()

getDurationCapture

public DurationCapture getDurationCapture()


Copyright © 2013. All Rights Reserved.