Interface Producer<T>
-
- Type Parameters:
T
- type of the produced result.
- All Superinterfaces:
java.util.concurrent.Callable<T>
public interface Producer<T> extends java.util.concurrent.Callable<T>
This interface extendsCallable
interface but removes the exception fromcall
declaration.This convenience interface may be used in places where a task producing a result needs to be executed in the request scope but no
checked exceptions
are thrown during the task execution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
call()
-