Cache netconf operations 19/79219/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Jan 2019 03:05:08 +0000 (04:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Jan 2019 03:05:08 +0000 (04:05 +0100)
commitc806cf58a04a211ad6d95979a802c8f008ac58a8
tree1db3f02d4a5516099fff46c175e1e07eb350e58a
parent71aa687845b198dcfb71921dafbd9dea4655249a
Cache netconf operations

NetconfMonitoringOperationService is creating operations on demand,
where these are immutable and can be freely reused.

Instantiate them exactly once and keep them around for reuse.

Change-Id: If0ed07af0863dba0e715c4ce0447d22289a3475f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-monitoring/src/main/java/org/opendaylight/netconf/monitoring/Get.java
netconf/netconf-monitoring/src/main/java/org/opendaylight/netconf/monitoring/osgi/NetconfMonitoringOperationService.java