BUG-5280: refactor AbstractClientConnection 64/48864/3
authorRobert Varga <rovarga@cisco.com>
Thu, 1 Dec 2016 10:17:53 +0000 (11:17 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 1 Dec 2016 14:37:52 +0000 (15:37 +0100)
commitb604e392408dfbf46ee0a7e1ac4cd27170a83bff
tree9d12d149293fa3f90de37eae8bba00721d8f0b23
parentfe8352361d49c76a0ecc80162a2b8258d35198b5
BUG-5280: refactor AbstractClientConnection

The structure of AbstractClientConnection and its subclasses
makes it hard to replay messages in a coordinated fashion. Furthermore
splitting the inflight and pending and inflight queues into separate
classes means we would have to jump through quite a few hoops
to correctly calculate backpressure.

Refactor the base class so it includes all the operations usually
performed, with remoteMaxMessages() acting as the limiter, which disables
transmission in connecting/reconnecting states.

Change-Id: If743e4913aade7ed65ba60375d8b7d12c563cb96
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractReceivingClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ConnectedClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ConnectingClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ReconnectingClientConnection.java