abelaska / jedis-lock

Jedis distributed lock support
203 stars 118 forks source link

need configurable sleep time instead of 100 millis, possibly with exponential backoff #1

Open andrden opened 12 years ago

andrden commented 12 years ago

JedisLock.acquire() has hard coded Thread.sleep(100);

It would be nice if that sleep were configurable, also sleep time could increase from step to step if a resource is not available for a long time

abelaska commented 12 years ago

Hi, if you will send pull request with this feature (+test) I will be more than happy to merge it with the master branch.