public interface OperationTracker
Modifier and Type | Method and Description |
---|---|
<T> T |
invoke(java.lang.String description,
Invokable<T> operation)
As with
run(String, Runnable) , but the operation may return a value. |
<T> T |
perform(java.lang.String description,
IOOperation<T> operation)
As with
invoke(String, Invokable) , but the operation may throw an IOException . |
void |
run(java.lang.String description,
java.lang.Runnable operation)
Executes the operation.
|
void run(java.lang.String description, java.lang.Runnable operation)
RuntimeException
it will be logged and rethrown
wrapped as a OperationException
.description
- used if there is an exceptionoperation
- to execute<T> T invoke(java.lang.String description, Invokable<T> operation)
run(String, Runnable)
, but the operation may return a value.description
- used if there is an exceptionoperation
- to invoke<T> T perform(java.lang.String description, IOOperation<T> operation) throws java.io.IOException
invoke(String, Invokable)
, but the operation may throw an IOException
.description
- used if there is an exception (outside of IOException)operation
- to performjava.io.IOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.