public abstract static class Async.Work
extends java.lang.Object
| Constructor and Description |
|---|
Async.Work(Event event) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
fail(java.lang.String host,
java.lang.Exception e)
If this happens with
Async.Timeout, just resend. |
abstract void |
read(java.lang.String host,
java.lang.String body)
Will probably return String headers and byte[] body at some point.
|
abstract void |
send(Async.Call call)
POST or GET small data with
Async.Call.post(String, String, byte[]) and Async.Call.get(String, String), POST large data with Async.Call.post(String, String, File). |
public Async.Work(Event event) throws java.lang.Exception
java.lang.Exceptionpublic abstract void send(Async.Call call) throws java.lang.Exception
Async.Call.post(String, String, byte[]) and Async.Call.get(String, String), POST large data with Async.Call.post(String, String, File).java.lang.Exceptionpublic abstract void read(java.lang.String host,
java.lang.String body)
throws java.lang.Exception
java.lang.Exceptionpublic abstract void fail(java.lang.String host,
java.lang.Exception e)
throws java.lang.Exception
Async.Timeout, just resend.
Exceptions you might see here:
ClosedChannel and
Connectjava.lang.Exception