Package com.github.kevinsawicki.http
Class HttpRequest.CloseOperation<V>
java.lang.Object
com.github.kevinsawicki.http.HttpRequest.Operation<V>
com.github.kevinsawicki.http.HttpRequest.CloseOperation<V>
- Type Parameters:
V
-
- All Implemented Interfaces:
Callable<V>
- Enclosing class:
HttpRequest
Class that ensures a
Closeable
gets closed with proper exception
handling.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CloseOperation
(Closeable closeable, boolean ignoreCloseExceptions) Create closer for operation -
Method Summary
Methods inherited from class com.github.kevinsawicki.http.HttpRequest.Operation
call, run
-
Field Details
-
closeable
-
ignoreCloseExceptions
private final boolean ignoreCloseExceptions
-
-
Constructor Details
-
CloseOperation
Create closer for operation- Parameters:
closeable
-ignoreCloseExceptions
-
-
-
Method Details
-
done
Description copied from class:HttpRequest.Operation
Operation complete callback- Specified by:
done
in classHttpRequest.Operation<V>
- Throws:
IOException
-