Currently, passing a timeout of 0 to the accept(long) method of DeliveryChannel consists in a non-blocking call that will return directly if there is no messages in the delivery channel.
According to the spec, 0 means no timeout, not that there is an instantaneous timeout.
For a very short timeout, one can simply use a very short value
Currently, passing a timeout of 0 to the accept(long) method of DeliveryChannel consists in a non-blocking call that will return directly if there is no messages in the delivery channel.
According to the spec, 0 means no timeout, not that there is an instantaneous timeout.
For a very short timeout, one can simply use a very short value