public class OperationTrackerImpl extends Object implements OperationTracker
PerThreadOperationTracker| Constructor and Description | 
|---|
OperationTrackerImpl(org.slf4j.Logger logger)  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
invoke(String description,
            Invokable<T> operation)
As with  
OperationTracker.run(String, Runnable), but the operation may return a value. | 
<T> T | 
perform(String description,
              IOOperation<T> operation)
As with  
OperationTracker.invoke(String, Invokable), but the operation may throw an IOException. | 
void | 
run(String description,
      Runnable operation)
Executes the operation. 
 | 
public OperationTrackerImpl(org.slf4j.Logger logger)
public void run(String description, Runnable operation)
OperationTrackerRuntimeException it will be logged and rethrown
 wrapped as a OperationException.run in interface OperationTrackerdescription - used if there is an exceptionoperation - to executepublic <T> T invoke(String description, Invokable<T> operation)
OperationTrackerOperationTracker.run(String, Runnable), but the operation may return a value.invoke in interface OperationTrackerdescription - used if there is an exceptionoperation - to invokepublic <T> T perform(String description, IOOperation<T> operation) throws IOException
OperationTrackerOperationTracker.invoke(String, Invokable), but the operation may throw an IOException.perform in interface OperationTrackerdescription - used if there is an exception (outside of IOException)operation - to performIOException${project.version} - Copyright © 2003-2015 The Apache Software Foundation.