public class Async
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
class |
Async.Call
Holds the channel and buffer.
|
static class |
Async.Timeout
Thrown when
SocketChannel.read(ByteBuffer) returns -1. |
static class |
Async.Work
This is your Async callback.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
debug() |
void |
run() |
void |
send(java.lang.String host,
Async.Work work,
int invalidate)
Send work to some host.
|
public boolean debug()
public void send(java.lang.String host,
Async.Work work,
int invalidate)
throws java.lang.Exception
invalidate - the number of seconds after which the channel is regarded as unreliable.java.lang.Exceptionpublic void run()
run in interface java.lang.Runnable