com.github.kevinsawicki.http
Class HttpRequest.Operation<V>
java.lang.Object
com.github.kevinsawicki.http.HttpRequest.Operation<V>
- Type Parameters:
V
-
- All Implemented Interfaces:
- Callable<V>
- Direct Known Subclasses:
- HttpRequest.CloseOperation, HttpRequest.FlushOperation
- Enclosing class:
- HttpRequest
protected abstract static class HttpRequest.Operation<V>
- extends Object
- implements Callable<V>
Operation that handles executing a callback once complete and handling
nested exceptions
Method Summary |
V |
call()
|
protected abstract void |
done()
Operation complete callback |
protected abstract V |
run()
Run operation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest.Operation
protected HttpRequest.Operation()
run
protected abstract V run()
throws HttpRequest.HttpRequestException,
IOException
- Run operation
- Returns:
- result
- Throws:
HttpRequest.HttpRequestException
IOException
done
protected abstract void done()
throws IOException
- Operation complete callback
- Throws:
IOException
call
public V call()
throws HttpRequest.HttpRequestException
- Specified by:
call
in interface Callable<V>
- Throws:
HttpRequest.HttpRequestException
Copyright © 2011-2013. All Rights Reserved.