Use ArrayDeque for TransactionInvokerImpl.pendingTransactions 45/86245/26
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 5 Dec 2019 21:41:22 +0000 (22:41 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 7 Jan 2020 16:04:52 +0000 (16:04 +0000)
commit0dce35c93f74283e6e3ac6ba778314ba9b328073
treeef1dd6c1327e06fc0f1e31be3453734b30862019
parentccc8c4dbe82454fae0eae9e43f14cc115f1e372c
Use ArrayDeque for TransactionInvokerImpl.pendingTransactions

Rework the copy logic to operate on pure Iterator, disconnecting us
from the List API. This makes the choice of interface/implementation
a much broader one -- and pick Queue/ArrayDeque. It is a much better
structure for the job at hand.

JIRA: OVSDB-428
Change-Id: I22a4da6f4194d10e0932470bf2054441a9c1d3c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/TransactionInvokerImpl.java
southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/TransactionInvokerImplTest.java