Enable periodic barrier only when needed 60/20960/1
authorRobert Varga <rovarga@cisco.com>
Fri, 15 May 2015 23:38:12 +0000 (01:38 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Fri, 22 May 2015 11:01:20 +0000 (13:01 +0200)
commit1f50196a10fcf578451417d76629b94d71d33873
tree18428eb8c8e9a4f4f5daa507a8dac07265627f0b
parente55a242f3c5e384a8c2e2c25dfc26ec2d8dae9d5
Enable periodic barrier only when needed

Instead of rescheduling the timer, track precisely when we need to have
it enabled. This will ensure that idle channels are really idle.

Change-Id: I34f7b2fdc5a7abb9d3c2c612adb307bdf097cf10
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 096d3de0bc39bef5bb0493e721d794e850a5b49d)
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueManager.java