Use RestconfFuture/AsyncResponse for postData() 76/108276/6
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Oct 2023 08:19:26 +0000 (10:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 10 Oct 2023 07:53:12 +0000 (09:53 +0200)
commita83e6e778b9cca13743a2fc23db5ba0446cd62a3
tree508d7ecaa249a26f54683840a80f9a745bc375d3
parent2d30740e8845a3a19e7447f210110b17b412c967
Use RestconfFuture/AsyncResponse for postData()

We now have the tooling we need to make POST requests asynchronous, at
least from the JAX-RS perspective.

This patch provides the first-order wiring change, allowing
RestconfStrategy to completely control how the request is dispatched.
Current implementation eliminates synchronous wait for the commit
future, but leaves other blocking calls as they are.

JIRA: NETCONF-718
Change-Id: Iefcbe31b73b9ed85527ce57d75f29145dbc2ab4c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/RestconfStrategy.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/Netconf799Test.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/transactions/AbstractRestconfStrategyTest.java