Add CommitInfo and return it from transactions 94/71194/8
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 22 Apr 2018 23:29:58 +0000 (01:29 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Apr 2018 14:28:24 +0000 (16:28 +0200)
commitd74efc9a282c694a988bafe5f1305bf8494444a1
treeff97685e8bbdc8bbe53e36d6c75f51a92093f9ff
parent40aa600bbd901016afee17235d6dbe7b8bd1dd33
Add CommitInfo and return it from transactions

This patch introduces AsyncWriteTransaction.commit(), which
returns a FluentFuture instead of a CheckedFuture.

Since it may be useful for implementations to communicate some
post-commit state, the returned future is specified to return
a non-null CommitInfo. Utility empty CommitInfo implementation
is provided.

JIRA: MDSAL-337
Change-Id: I1c4bd007781515643e602a180d162e35e92116a1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/AsyncWriteTransaction.java
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/CommitInfo.java [new file with mode: 0644]
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/EmptyCommitInfo.java [new file with mode: 0644]