X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fcore%2Fconnection%2FOutboundQueueImpl.java;h=2433637f1bbc72148c89dafec2d38965f76d6759;hb=be5f0cac1babcfccc7209657f2541dd0818c5cb0;hp=c9c28c16769cdbf4a498bf92f37de0e1ea447971;hpb=1ef77ad63ab66eed7dd5404301964db8291004b1;p=openflowjava.git diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java index c9c28c16..2433637f 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java @@ -66,6 +66,9 @@ final class OutboundQueueImpl implements OutboundQueue { this.baseXid = baseXid; this.endXid = baseXid + queue.length; this.reserve = queue.length - 1; + } + + void retire() { for (OutboundQueueEntry element : queue) { element.reset(); } @@ -231,7 +234,7 @@ final class OutboundQueueImpl implements OutboundQueue { return null; } - final OfHeader msg = entry.getMessage(); + final OfHeader msg = entry.takeMessage(); flushOffset++; if (msg != null) { return msg;