StatusMessagesDataService

public interface StatusMessagesDataService extends MotechDataService<StatusMessage>

MDS data service for StatusMessages.

Methods

findByTimeout

List<StatusMessage> findByTimeout(Range<DateTime> timeout)

Returns status messages with their timeout value in a given range. Leaving the min value empty will result in retrieving all messages timing out before the max value. Leaving the max value empty will result in retrieving all messages timing out after the min value.

Parameters:
  • timeout – the range in which the timeout date-time must fall
Returns:

a list of messages matching the timeout criteria