MotechEventConfig

public class MotechEventConfig

Accesses the MotechEventConfig variables.

Methods

getMessageMaxRedeliveryCount

public int getMessageMaxRedeliveryCount()

Returns maximum number of times a message would be re-delivered in case of any exception.

Returns:the maximum number of message redelivery

getMessageRedeliveryDelay

public long getMessageRedeliveryDelay()

Returns delay (in seconds) between successive re-deliveries of messages in case of any exception. If delay=d and first exception was raised at time=t, then successive redelivery times are t+d, t+(d*2), t+(d*4), t+(d*8), t+(d*16), t+(d*32), and so on, till maximum redelivery count is reached.

Returns:the message redelivery delay