V - the result type of method call@FunctionalInterface
public interface ShutdownAwareCallable<V>
call with ShutdownInfo as an argument.
The ShutdownAwareCallable interface is similar to Callable,
in that both are designed for classes whose instances are potentially executed by another thread.
A ShutdownAwareCallable however has an input argument ShutdownInfo which can be asked
if underlying Executor has received a shutdown signal.
The class is intended to be use with custom executor wrapper Runner.
Runner,
ShutdownAwareCallable| Modifier and Type | Method and Description |
|---|---|
V |
call(ShutdownInfo shutdownInfo)
Computes a result or throws an exception if unable to do so.
|
V call(ShutdownInfo shutdownInfo) throws java.lang.Exception
shutdownInfo - provides info if underlying Executor received a shutdown signaljava.lang.Exception - if unable to compute a resultRunner