resourcepool / ssdp-client

The most lightweight asynchronous Java SSDP (Simple Service Discovery Protocol) Client
Apache License 2.0
52 stars 21 forks source link

[Feature request] Custom interval between requests #13

Closed luizgrp closed 5 years ago

luizgrp commented 5 years ago

Hi @loicortola, thanks for this library.

Currently the interval between subsequent discovery requests is hardcoded here. It would be nice to allow it to be customised.

I'm happy to submit a pull request, I just want to check first if you are happy in having this change and how would you prefer it done.

I would suggest to add an optional intervalBetweenRequests parameter to DiscoveryRequest class, so the intervals can be set per request.

Please let me know your thoughts.

loicortola commented 5 years ago

Hello @luizgrp ,

just added this to the API, will be released in 2.3.0

Sorry I am so late and thanks for taking the time to write the Issue :)