Interface DeliveryManager

  • All Known Implementing Classes:
    DeliveryManagerImpl

    public interface DeliveryManager
    The interface that a delivery manager must implement. This method is invoked by the delivery thread
    Since:
    3.1
    Author:
    Pedro Ruivo
    • Method Detail

      • getNextMessagesToDeliver

        java.util.List<Message> getNextMessagesToDeliver()
                                                  throws java.lang.InterruptedException
        returns an ordered list with the messages to be deliver. This method blocks if no messages are ready to be deliver
        Returns:
        a list of messages to deliver
        Throws:
        java.lang.InterruptedException - if it is interrupted