Class Reaper
java.lang.Object
zmq.ZObject
zmq.Reaper
- All Implemented Interfaces:
Closeable, AutoCloseable, IPollEvents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Mailboxprivate final Poller.Handleprivate final Stringprivate final Pollerprivate intprivate final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private void(package private) MailboxvoidinEvent()Called by I/O thread when file descriptor is ready for reading.protected voidprocessReap(SocketBase socket) protected voidprotected void(package private) voidstart()(package private) voidstop()Methods inherited from class 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, unregisterEndpointsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPollEvents
acceptEvent, connectEvent, outEvent, timerEvent
-
Field Details
-
mailbox
-
mailboxHandle
-
poller
-
socketsReaping
private int socketsReaping -
terminating
-
name
-
-
Constructor Details
-
Reaper
Reaper(Ctx ctx, int tid)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
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
- Overrides:
processReapin classZObject
-
processReaped
protected void processReaped()- Overrides:
processReapedin classZObject
-
finishTerminating
private void finishTerminating()
-