Package zmq
Class Reaper
- java.lang.Object
-
- zmq.ZObject
-
- zmq.Reaper
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,IPollEvents
final class Reaper extends ZObject implements IPollEvents, java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private Mailboxmailboxprivate Poller.HandlemailboxHandleprivate java.lang.Stringnameprivate Pollerpollerprivate intsocketsReapingprivate java.util.concurrent.atomic.AtomicBooleanterminating
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voidfinishTerminating()(package private) MailboxgetMailbox()voidinEvent()Called by I/O thread when file descriptor is ready for reading.protected voidprocessReap(SocketBase socket)protected voidprocessReaped()protected voidprocessStop()(package private) voidstart()(package private) voidstop()-
Methods inherited from class zmq.ZObject
chooseIoThread, connectPending, destroySocket, findEndpoint, getCtx, getTid, pendConnection, processActivateRead, processActivateWrite, processAttach, processBind, processCancel, processCommand, processHiccup, processOwn, processPipeTerm, processPipeTermAck, processPlug, processReapAck, processSeqnum, processTerm, processTermAck, processTermReq, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendCancel, sendDone, sendHiccup, sendInprocConnected, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReapAck, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, setTid, unregisterEndpoint, unregisterEndpoints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface zmq.poll.IPollEvents
acceptEvent, connectEvent, outEvent, timerEvent
-
-
-
-
Field Detail
-
mailbox
private final Mailbox mailbox
-
mailboxHandle
private final Poller.Handle mailboxHandle
-
poller
private final Poller poller
-
socketsReaping
private int socketsReaping
-
terminating
private final java.util.concurrent.atomic.AtomicBoolean terminating
-
name
private final java.lang.String name
-
-
Constructor Detail
-
Reaper
Reaper(Ctx ctx, int tid)
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getMailbox
Mailbox getMailbox()
-
start
void start()
-
stop
void stop()
-
inEvent
public void inEvent()
Description copied from interface:IPollEventsCalled by I/O thread when file descriptor is ready for reading.- Specified by:
inEventin interfaceIPollEvents
-
processStop
protected void processStop()
- Overrides:
processStopin classZObject
-
processReap
protected void processReap(SocketBase socket)
- Overrides:
processReapin classZObject
-
processReaped
protected void processReaped()
- Overrides:
processReapedin classZObject
-
finishTerminating
private void finishTerminating()
-
-