[SNMP4J] thread safety on SNMP

Frank Fock fock at agentpp.com
Fri Dec 9 15:27:31 CET 2016


Hi Mert,

Yes, Snmp is thread safe as it could be.

I will take care about the Closable interface at least for the 3.0 release (based on Java 9 for DTLS support).

Best regards,
Frank


> On 8 Dec 2016, at 11:55, Mert Çalışkan <mcaliskan at gmail.com> wrote:
> 
> Hi,
> 
> I’m in  the process of integrating SNMP4J into Payara, which is derived from Glassfish application server, for the notification services mechanism.  
> Is it ok to say that an instance of org.snmp4j.Snmp is thread-safe? I’d say it is according to the source but I’d like to verify with the team.  
> 
> I see that a SNMP session can be closed, via close(), so I think it’d be good to implement java.io.Closeable in order to provide try-with-resources feature on the SNMP instances.
> 
> Thanks,  
> 
> Mert Çalışkan
> Oracle Java Champion
> Developer (http://www.t2.com.tr), Lecturer (http://www.cs.hacettepe.edu.tr/kisiler.html), JUG Leader (http://www.ankarajug.org), Author (http://www.amazon.com/author/mert)  
> https://tr.linkedin.com/in/mertcaliskan
> 
> 
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j




More information about the SNMP4J mailing list