public class SessionBase extends Own implements Pipe.IPipeEvents, IPollEvents
| Modifier and Type | Field and Description |
|---|---|
protected SocketBase |
socket |
| Constructor and Description |
|---|
SessionBase(IOThread ioThread,
boolean connect,
SocketBase socket,
Options options,
Address addr) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachPipe(Pipe pipe) |
void |
destroy() |
void |
engineError(StreamEngine.ErrorReason reason) |
void |
flush() |
SocketBase |
getSocket() |
void |
hiccuped(Pipe pipe) |
void |
incSeqnum() |
void |
pipeTerminated(Pipe pipe) |
protected void |
processAttach(IEngine engine) |
protected void |
processPlug() |
protected void |
processTerm(int linger) |
protected Msg |
pullMsg() |
protected boolean |
pushMsg(Msg msg) |
void |
readActivated(Pipe pipe) |
Msg |
readZapMsg() |
protected void |
reset() |
void |
timerEvent(int id)
Called when timer expires.
|
String |
toString() |
void |
writeActivated(Pipe pipe) |
boolean |
writeZapMsg(Msg msg) |
int |
zapConnect() |
protected boolean |
zapEnabled() |
isTerminating, launchChild, processDestroy, processOwn, processSeqnum, processTermAck, processTermReq, termChild, terminatechooseIoThread, connectPending, destroySocket, findEndpoint, getCtx, getTid, pendConnection, processActivateRead, processActivateWrite, processBind, processHiccup, processPipeTerm, processPipeTermAck, processReap, processReaped, processStop, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendDone, sendHiccup, sendInprocConnected, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, setTid, unregisterEndpoint, unregisterEndpointsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptEvent, connectEvent, inEvent, outEventprotected final SocketBase socket
public SessionBase(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
public void attachPipe(Pipe pipe)
protected Msg pullMsg()
protected boolean pushMsg(Msg msg)
public Msg readZapMsg()
public boolean writeZapMsg(Msg msg)
protected void reset()
public void flush()
public void pipeTerminated(Pipe pipe)
pipeTerminated in interface Pipe.IPipeEventspublic void readActivated(Pipe pipe)
readActivated in interface Pipe.IPipeEventspublic void writeActivated(Pipe pipe)
writeActivated in interface Pipe.IPipeEventspublic void hiccuped(Pipe pipe)
hiccuped in interface Pipe.IPipeEventspublic SocketBase getSocket()
protected void processPlug()
processPlug in class ZObjectpublic int zapConnect()
protected boolean zapEnabled()
protected void processAttach(IEngine engine)
processAttach in class ZObjectpublic void engineError(StreamEngine.ErrorReason reason)
protected void processTerm(int linger)
processTerm in class Ownpublic void timerEvent(int id)
IPollEventstimerEvent in interface IPollEventsid - the ID of the expired timer.Copyright © 2020. All rights reserved.