[JSONRPC-25] Reuse requester instance if URI was already provisioned Created: 21/Sep/18  Updated: 05/Oct/18  Resolved: 05/Oct/18

Status: Resolved
Project: jsonrpc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Low
Reporter: Richard Kosegi Assignee: Richard Kosegi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Context here : https://lists.opendaylight.org/pipermail/jsonrpc-dev/2018-September/000201.html

Let's make RequesterSessionImpl to use reference counting.

When Requester was already provided for particular endpoint (URI) just return original instance and increase reference count.

Calling close on returned instance will only decrease reference count.

Once it reach 0, close it finally.


Generated at Wed Feb 07 20:05:20 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.