Refactor ShardDataTree.processNextPending() 93/114293/6
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 1 Nov 2024 11:04:14 +0000 (12:04 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Nov 2024 09:44:10 +0000 (10:44 +0100)
commit1589296d1d97af9e42c31a53f8b12854fabdecb5
treede41c1acb798092b4986a6de6ec7db0eb0006f41
parent14f96d31aa4f555568324d2a065e7d9509f54c44
Refactor ShardDataTree.processNextPending()

This is a match with possible removal of stale entries. Reduce confusion
by renaming it to findFirstEntry() and returning a nullable CohortEntry.

Callers then perform a simple null check instead of passing down a
lambda.

JIRA: CONTROLLER-2131
Change-Id: I39e35b6374ef1aa6d6c0c8bc2e32dd4d91263de6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java