stompgem / stomp

A ruby gem for sending and receiving messages from a Stomp protocol compliant message queue. Includes: failover logic, ssl support.
http://stomp.github.com
Apache License 2.0
152 stars 80 forks source link

Stomp alternative to sleep #144

Closed krish4 closed 6 years ago

krish4 commented 6 years ago

Hi, This is Krish, i'm working on Stomp with ruby..

In my Program I kept sleep time as 0.5 and

Even after receiving the response from the Activemq Queue ..

The programs hangs for specified time mention with sleep..

I would like to have help on below 2 points

1.what alternative to sleep , we have in Stomp with activemq?

2.if response comes before sleep time mentioned how to move on with out waiting on complete the mentioned sleep time

please help me on this

Thanks & Regards, Krish

gmallard commented 6 years ago

The alternative to 'sleep' is for you to design your system so that it does not use sleep.

Design is your responsibility.

It certainly has nothing to do with STOMP or the stomp gem.