[SNMP4J] Re: How to set priority of the listener thread in DefaultUdpTransportMapping
Frank Fock
fock at agentpp.com
Wed Apr 6 20:53:30 CEST 2005
Hi Tejo,
I think making the listenerThread member "protected" is a clean solution
to the problem. This change will be in the next release. So you might also
make this change to your current version and subclass
DefaultUdpTransportMapping. I am also thinking about providing an access
method for the priority though.
Best regards,
Frank
Tejo Vamsi Prayaga wrote:
> Hi Frank, All
>
> I am just thinking is there any way we can increase the priority of
> the ListenerThread of DefaultUdpTransportMapping. We might want to do
> this, in case we want to read the packets at a more faster rate.
>
> I tried extending the DefaultUdpTransportMapping class, but it will
> not work since, socket and listenerThread are private members, and
> they will not be able accessible in the subclass.
> One option is to write a new class which extends from
> UdpTransportMapping, but I feel writing a sub class without changing
> much of the super class functionality is not that much worth it.
>
> Are we going to have an API which will support setting of prority of
> the listener thread in the future. If so, at what time it will be
> available. If it is not feasible now, I will write a new class, which
> supports it.
>
> Thanks for your time.
>
> Regards
> Tejo
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Better first dates. More second dates. Yahoo! Personals
> <http://us.rd.yahoo.com/evt=27808/*http://personals.yahoo.com>
More information about the SNMP4J
mailing list