Enable periodic barrier only when needed 79/20579/3
authorRobert Varga <rovarga@cisco.com>
Fri, 15 May 2015 23:38:12 +0000 (01:38 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 16 May 2015 12:25:25 +0000 (14:25 +0200)
commit096d3de0bc39bef5bb0493e721d794e850a5b49d
tree4a687421b293376030924957afe2b70cb3c0d19d
parent2a2781e63b1d36d1b293519e0bca7d2b292a5584
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>
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