T - type of the produced result.public interface Producer<T> extends Callable<T>
Callable interface but removes the
exception from call 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.
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.