Make DataModification closeable 97/8297/2
authorMaros Marsalek <maros.mars@gmail.com>
Mon, 4 Sep 2017 12:37:57 +0000 (14:37 +0200)
committerMaroš Maršalek <maros.mars@gmail.com>
Tue, 5 Sep 2017 11:18:28 +0000 (11:18 +0000)
commit0d4a04e1452e19ce96c308cd45a430a3f5b72f04
tree22f71b904209922ad2a3f8ed77f0e647346196db
parent6506878ae7ad2b9ade390127ece11f7a1a3b67dd
Make DataModification closeable

and close the modification from transactions.

This enables cleanup of underlay resources per transaction.
It is not needed when managing VPP, but might be useful for
other use-cases where underlay transactions are involved.

Change-Id: If14197052172be0158fd7efb5ee1794935d576bc
Signed-off-by: Maros Marsalek <maros.mars@gmail.com>
infra/data-api/src/main/java/io/fd/honeycomb/data/DataModification.java
infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ReadOnlyTransaction.java
infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/WriteTransaction.java