| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.netio.rtt
|
+--com.newstep.solid.netio.rtt.ContinuityElement
public abstract class ContinuityElement
Abstract.
Implements:
ProtocolListener
CommChannelStateListener
Links:
Kernel Association Association Link
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
protected
Custom properties
link:
aggregationByValue
Implementation Implementation Link
Generalization Generalization Link
Implementation Implementation Link
| Nested Class Summary |
protected class |
State |
| Field Summary |
protected LinkedBlockingQueue |
|
private final static String |
|
private boolean |
|
protected TimerTask |
|
final static long |
|
protected final static long |
|
protected int |
|
protected int |
|
protected long |
|
private static Logger |
|
|
|
protected int |
|
protected int |
|
protected ReentrantLock |
|
State |
|
State |
CHANNEL_CLOSED |
State |
CONNECTED |
State |
ERROR |
State |
MESSAGE_OUT_OF_ORDER |
State |
MISSED_HEARTBEAT |
| Method Summary |
void |
|
abstract void |
|
abstract TimerTask |
|
abstract void |
|
public void |
|
protected void |
|
protected synchronized boolean |
|
public void |
|
protected void |
|
public void |
|
protected LinkedBlockingQueue ackPendingQueue
Multiplicity:
1
private final static String className
Final.
Multiplicity:
1
Static.
private boolean closing
Multiplicity:
1
protected TimerTask heartbeatTask
Multiplicity:
1
final static long HEARTBEAT_DELAY
Final.
Multiplicity:
1
Static.
protected final static long HEARTBEAT_PANIC_DELAY
Final.
Multiplicity:
1
Static.
protected int incommingSeqNo
Multiplicity:
1
protected int lastAcknowledged
Multiplicity:
1
protected long lastHeartbeat
Multiplicity:
1
private static Logger logger
Multiplicity:
1
Static.
Multiplicity:
1
protected int outgoingAckNo
Multiplicity:
1
protected int outgoingSeqNo
Multiplicity:
1
protected ReentrantLock queLock
Multiplicity:
1
State state
Multiplicity:
1
void ContinuityElement ()
Stereotype:
create
void checkContinuity (Integer ack)
Checks the continuity of the message flow
Parameters:
ack sequence number of the last message the sender is acknowledging
seqNo sequence number of the current message
abstract void controlMessageReceived (RttMessage message)
Handles control messages ( enable and ID_XXX )
Parameters:
message control message
Abstract.
abstract TimerTask getHeartbeatTask ()
Return:
timer task to handle keepalives
Abstract.
Handles heartbeat messages
Parameters:
message heartbeat message
Abstract.
protected void reset ()
Resets the state of the continuity element. It is invoked before attempting to reconnect.
protected synchronized boolean setClosing ()
Synchronized.
protected void updateState (State newState)
Single point for state handling
Parameters:
newState state - reason
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|