Class TransportSession
- java.lang.Object
-
- org.apache.hugegraph.computer.core.network.session.TransportSession
-
- Direct Known Subclasses:
ClientSession,ServerSession
public abstract class TransportSession extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TransportConfconfprotected intfinishIdprotected static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<TransportSession>MAX_REQUEST_ID_UPDATERprotected intmaxAckIdprotected intmaxRequestIdprotected TransportStatestate
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransportSession(TransportConf conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportConfconf()intfinishId()protected intgenFinishId()intnextRequestId()TransportStatestate()protected voidstateEstablished()protected voidstateReady()
-
-
-
Field Detail
-
MAX_REQUEST_ID_UPDATER
protected static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<TransportSession> MAX_REQUEST_ID_UPDATER
-
conf
protected final TransportConf conf
-
state
protected volatile TransportState state
-
maxRequestId
protected volatile int maxRequestId
-
maxAckId
protected volatile int maxAckId
-
finishId
protected volatile int finishId
-
-
Constructor Detail
-
TransportSession
protected TransportSession(TransportConf conf)
-
-
Method Detail
-
stateReady
protected void stateReady()
-
stateEstablished
protected void stateEstablished()
-
state
public TransportState state()
-
nextRequestId
public int nextRequestId()
-
genFinishId
protected int genFinishId()
-
finishId
public int finishId()
-
conf
public TransportConf conf()
-
-