Package org.apache.http.nio.reactor
Interface IOReactorExceptionHandler
public interface IOReactorExceptionHandler
Abstract exception handler intended to deal with potentially recoverable
I/O exceptions thrown by an I/O reactor.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(IOException ex) This method is expected to examine the I/O exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.boolean
This method is expected to examine the runtime exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.
-
Method Details
-
handle
This method is expected to examine the I/O exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.- Parameters:
ex
- potentially recoverable I/O exception- Returns:
true
if it is safe to ignore the exception and continue execution of the I/O reactor;false
if the I/O reactor must throwIOReactorException
and terminate
-
handle
This method is expected to examine the runtime exception passed as a parameter and decide whether it is safe to continue execution of the I/O reactor.- Parameters:
ex
- potentially recoverable runtime exception- Returns:
true
if it is safe to ignore the exception and continue execution of the I/O reactor;false
if the I/O reactor must throwRuntimeException
and terminate
-