Class SessionBase
java.lang.Object
zmq.ZObject
zmq.Own
zmq.io.SessionBase
- All Implemented Interfaces:
Pipe.IPipeEvents, IPollEvents
- Direct Known Subclasses:
Dish.DishSession, HelloMsgSession, Radio.RadioSession, Req.ReqSession
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSessionBase(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachPipe(Pipe pipe) voiddestroy()voidengineError(boolean handshaked, StreamEngine.ErrorReason reason) voidflush()voidfinal voidvoidpipeTerminated(Pipe pipe) protected voidprocessAttach(IEngine engine) protected voidprotected voidprocessTerm(int linger) protected MsgpullMsg()protected booleanvoidreadActivated(Pipe pipe) protected voidreset()voidtimerEvent(int id) Called when timer expires.toString()voidwriteActivated(Pipe pipe) booleanwriteZapMsg(Msg msg) intprotected booleanMethods inherited from class Own
isTerminating, launchChild, processDestroy, processOwn, processSeqnum, processTermAck, processTermReq, termChild, terminateMethods inherited from class ZObject
chooseIoThread, connectPending, destroySocket, findEndpoint, getCtx, getTid, pendConnection, processActivateRead, processActivateWrite, processBind, processCancel, processHiccup, processPipeTerm, processPipeTermAck, processReap, processReapAck, processReaped, processStop, 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, wait, wait, waitMethods inherited from interface IPollEvents
acceptEvent, connectEvent, inEvent, outEvent
-
Field Details
-
socket
-
-
Constructor Details
-
SessionBase
public SessionBase(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
-
-
Method Details
-
destroy
-
attachPipe
-
pullMsg
-
pushMsg
-
readZapMsg
-
writeZapMsg
-
reset
protected void reset() -
flush
public void flush() -
pipeTerminated
- Specified by:
pipeTerminatedin interfacePipe.IPipeEvents
-
readActivated
- Specified by:
readActivatedin interfacePipe.IPipeEvents
-
writeActivated
- Specified by:
writeActivatedin interfacePipe.IPipeEvents
-
hiccuped
- Specified by:
hiccupedin interfacePipe.IPipeEvents
-
getSocket
-
processPlug
protected void processPlug()- Overrides:
processPlugin classZObject
-
zapConnect
public int zapConnect() -
zapEnabled
protected boolean zapEnabled() -
processAttach
- Overrides:
processAttachin classZObject
-
engineError
-
processTerm
protected void processTerm(int linger) - Overrides:
processTermin classOwn
-
timerEvent
public void timerEvent(int id) Description copied from interface:IPollEventsCalled when timer expires.- Specified by:
timerEventin interfaceIPollEvents- Parameters:
id- the ID of the expired timer.
-
getEndpoint
-
toString
-
incSeqnum
-