[SNMP4J] Shared SNMP instances with MOSubTreeProxy

Frank Fock fock at agentpp.com
Wed Mar 9 22:20:55 CET 2016


Hi Rushik,

Sharing a single Snmp instance by multiple threads is OK (it is intended 
for that usage).
You can use then both synchronous and asynchronous requests in any 
combination.

Best regards,
Frank

Am 09.03.2016 um 18:43 schrieb ru_44 at hotmail.com:
> I am using MOSubTreeProxy to forward a subTree OID to a remote agent and its working perfectly.
> My question I have another thread that is  polling the same remote agent.
> Is it better to share the same snmp instance b/w the MOSubTreeProxy class and my other thread  or create a new snmp instance in the thread.
>   
> How thread-safe is snmp class if shared in multiple threads?
>   
> thanks
> Rushik Patel
>   		 	   		
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list