class SessionBase extends Own implements Pipe.IPipeEvents, IPollEvents, IMsgSink, IMsgSource
| Modifier and Type | Field and Description |
|---|---|
private Address |
addr |
private boolean |
connect |
private IEngine |
engine |
private boolean |
hasLingerTimer |
private boolean |
identityReceived |
private boolean |
identitySent |
private boolean |
incompleteIn |
private IOObject |
ioObject |
private IOThread |
ioThread |
private static int |
LINGER_TIMER_ID |
private boolean |
pending |
private Pipe |
pipe |
protected SocketBase |
socket |
private java.util.Set<Pipe> |
terminatingPipes |
| Constructor and Description |
|---|
SessionBase(IOThread ioThread,
boolean connect,
SocketBase socket,
Options options,
Address addr) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptEvent() |
void |
attachPipe(Pipe pipe) |
private void |
cleanPipes() |
void |
connectEvent() |
static SessionBase |
create(IOThread ioThread,
boolean connect,
SocketBase socket,
Options options,
Address addr) |
void |
destroy() |
void |
detach() |
private void |
detached() |
void |
flush() |
SocketBase |
getSocket() |
void |
hiccuped(Pipe pipe) |
void |
inEvent() |
void |
outEvent() |
void |
pipeTerminated(Pipe pipe) |
protected void |
processAttach(IEngine engine) |
protected void |
processPlug() |
protected void |
processTerm(int linger) |
Msg |
pullMsg() |
int |
pushMsg(Msg msg) |
void |
readActivated(Pipe pipe) |
protected void |
reset() |
private void |
startConnecting(boolean wait) |
void |
timerEvent(int id) |
java.lang.String |
toString() |
void |
writeActivated(Pipe pipe) |
incSeqnum, isTerminating, launchChild, processDestroy, processOwn, processSeqnum, processTermAck, processTermReq, registerTermAcks, termChild, terminate, unregisterTermAckchooseIoThread, destroySocket, findEndpoint, getCtx, getTid, processActivateRead, processActivateWrite, processBind, processCommand, processHiccup, processPipeTerm, processPipeTermAck, processReap, processReaped, processStop, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendDone, sendHiccup, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, unregisterEndpointsprivate boolean connect
private Pipe pipe
private final java.util.Set<Pipe> terminatingPipes
private boolean incompleteIn
private boolean pending
private IEngine engine
protected SocketBase socket
private IOThread ioThread
private static final int LINGER_TIMER_ID
private boolean hasLingerTimer
private boolean identitySent
private boolean identityReceived
private final Address addr
private IOObject ioObject
public SessionBase(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
public static SessionBase create(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
public void attachPipe(Pipe pipe)
public Msg pullMsg()
pullMsg in interface IMsgSourceprotected void reset()
public void flush()
private void cleanPipes()
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 ZObjectprotected void processAttach(IEngine engine)
processAttach in class ZObjectpublic void detach()
protected void processTerm(int linger)
processTerm in class Ownpublic void timerEvent(int id)
timerEvent in interface IPollEventsprivate void detached()
private void startConnecting(boolean wait)
public java.lang.String toString()
toString in class java.lang.Objectpublic void inEvent()
inEvent in interface IPollEventspublic void outEvent()
outEvent in interface IPollEventspublic void connectEvent()
connectEvent in interface IPollEventspublic void acceptEvent()
acceptEvent in interface IPollEvents