ngsdn-tutorial icon indicating copy to clipboard operation
ngsdn-tutorial copied to clipboard

Are member variables in ONOS Component Classes thread safe and persistent. (Question)

Open abhijith96 opened this issue 2 years ago • 0 comments
trafficstars

Hi, If I want to store some state information in a Component like the L2Brideging Component, what might be the best way to do that? Can I have an array List as a data member of Component Class and store data in it and expect it to persist across all events like Device Addition event, Link Addition event etc. If so, do I need to make that array List thread safe using locks or some other mechanism.

abhijith96 avatar Nov 03 '23 15:11 abhijith96