Register resources for cleanup 11/113611/14
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 9 Oct 2024 15:05:22 +0000 (17:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Oct 2024 08:05:07 +0000 (10:05 +0200)
commit6166b4e693d704ad3199ed9516c3833f7afb8dbb
tree4b1a68bcb785bd3c2b07be3382b0e1ec1e145cd0
parent4dacf4ba20d27450e4180491b4351f67610f6ffe
Register resources for cleanup

Add the possibility to close transport session and the ability
to register resource to be closed.

For this we also add onTransportChannelClosed() into
TransportChannelListener which is invoked when channel is closed.

JIRA: NETCONF-714
Change-Id: I4912bd7d4a03530e4941bc9b663b2dc3b54a2f22
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/restconf-server-api/src/main/java/org/opendaylight/restconf/server/api/TransportSession.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/RestconfSession.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/RestconfTransportChannelListener.java
protocol/restconf-server/src/test/java/org/opendaylight/restconf/server/RestconfSessionTest.java [new file with mode: 0644]