Interface CallableRaisingIOE<R>
- Type Parameters:
R- return type
- All Known Implementing Classes:
LazyAtomicReference,LazyAutoCloseableReference
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a callable which only raises an IOException.
Its method
unchecked() invokes the apply()
method and wraps all IOEs in UncheckedIOException;
call this if you need to pass this through java streaming
APIs-
Method Summary
-
Method Details
-
apply
Apply the operation.- Returns:
- result
- Throws:
IOException- Any IO failure
-
unchecked
Apply unchecked.- Returns:
- the evaluated call
- Throws:
UncheckedIOException- IOE raised.
-