public class Reaper extends ZObject implements IPollEvents, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
private Mailbox |
mailbox |
private java.nio.channels.SelectableChannel |
mailboxHandle |
private java.lang.String |
name |
private Poller |
poller |
private int |
sockets |
private java.util.concurrent.atomic.AtomicBoolean |
terminating |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptEvent() |
void |
close() |
void |
connectEvent() |
Mailbox |
getMailbox() |
void |
inEvent() |
void |
outEvent() |
protected void |
processReap(SocketBase socket) |
protected void |
processReaped() |
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, 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
private int sockets
private final java.util.concurrent.atomic.AtomicBoolean terminating
private java.lang.String name
public Reaper(Ctx ctx, int tid)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic Mailbox getMailbox()
public void start()
public void stop()
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 IPollEventsprotected void processStop()
processStop in class ZObjectprotected void processReap(SocketBase socket)
processReap in class ZObjectprotected void processReaped()
processReaped in class ZObject