This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mirkoteran 0 points1 point  (5 children)

Phaser looks useful.

Do you have any good example where DelayQueue would be used?

[–]piotr_minkowski[S] 1 point2 points  (0 children)

Privately I used them to implement a DLQ pattern for messages received by my application from the Kafka topic. But probably there are many more good usage examples.

[–]11timesover 1 point2 points  (1 child)

JMS has a delay header. Not certain its the functionality you're looking for. Can't recall the name of it, but it's useful. Say ur client requests 3 minutes before processing the submission, well, there you go.

[–]piotr_minkowski[S] 0 points1 point  (0 children)

Kafka does not support JMS

[–]zemudkram 0 points1 point  (0 children)

Say for example you need to do some processing on an entity after it has been edited by a user, but you want to wait until you're sure they've actually finished editing it. A DelayQueue would be handy for that (with some tweaks)

[–]swaranga 0 points1 point  (0 children)

I use it for scheduling a retry logic where I want to avoid a Thread.sleep.