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:
java.util.concurrent.Callable<V>
- Enclosing class:
- HttpRequest
protected abstract static class HttpRequest.CloseOperation<V> extends HttpRequest.Operation<V>
Class that ensures aCloseablegets closed with proper exception handling.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Closeablecloseableprivate booleanignoreCloseExceptions
-
Constructor Summary
Constructors Modifier Constructor Description protectedCloseOperation(java.io.Closeable closeable, boolean ignoreCloseExceptions)Create closer for operation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddone()Operation complete callback-
Methods inherited from class com.github.kevinsawicki.http.HttpRequest.Operation
call, run
-
-
-
-
Method Detail
-
done
protected void done() throws java.io.IOExceptionDescription copied from class:HttpRequest.OperationOperation complete callback- Specified by:
donein classHttpRequest.Operation<V>- Throws:
java.io.IOException
-
-