Package de.bmiag.tapir.util.scope
Class ThreadScopeCallable<V>
- java.lang.Object
-
- de.bmiag.tapir.util.scope.ThreadScopeCallable<V>
-
- Type Parameters:
V
- the result type of the givenCallable
- All Implemented Interfaces:
java.util.concurrent.Callable<V>
public class ThreadScopeCallable<V> extends java.lang.Object implements java.util.concurrent.Callable<V>
Runnable that ensures that the thread scope is destroyed afterwards.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description ThreadScopeCallable(java.util.concurrent.Callable<V> target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
call()
-