jedis: Can't interrupt a thread doing BRPOPLPUSH.
I would like to be able to interrupt() a thread doing BRPOPLPUSH. Specifically, if nothing has been popped yet, I want jedis.brpoplpush() to be able to throw an InterruptedException, so the thread can die.
This has been a source of hangs in my program, so for the moment I’m working around this with a manual while { jedis.rpoplpush(); sleep(); } that is interruptible.
Specifically, if nothing has yet been popped (e.g., a work queue is empty), it would be good if the command could be interrupted.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 29
+1 for
InterruptedException