public class IOThread extends ZObject implements IPollEvents, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
private Mailbox |
mailbox |
private java.nio.channels.SelectableChannel |
mailboxHandle |
(package private) java.lang.String |
name |
private Poller |
poller |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptEvent() |
void |
close() |
void |
connectEvent() |
int |
getLoad() |
Mailbox |
getMailbox() |
Poller |
getPoller() |
void |
inEvent() |
void |
outEvent() |
protected void |
processStop() |
void |
start() |
void |
stop() |
void |
timerEvent(int id) |
chooseIoThread, destroySocket, findEndpoint, getCtx, getTid, processActivateRead, processActivateWrite, processAttach, processBind, processCommand, processHiccup, processOwn, processPipeTerm, processPipeTermAck, processPlug, processReap, processReaped, processSeqnum, processTerm, processTermAck, processTermReq, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendDone, sendHiccup, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, unregisterEndpointsprivate final Mailbox mailbox
private final java.nio.channels.SelectableChannel mailboxHandle
private final Poller poller
final java.lang.String name
public IOThread(Ctx ctx, int tid)
public void start()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void stop()
public Mailbox getMailbox()
public int getLoad()
public void inEvent()
inEvent in interface IPollEventspublic void outEvent()
outEvent in interface IPollEventspublic void connectEvent()
connectEvent in interface IPollEventspublic void acceptEvent()
acceptEvent in interface IPollEventspublic void timerEvent(int id)
timerEvent in interface IPollEventspublic Poller getPoller()
protected void processStop()
processStop in class ZObject