.. java:import:: io.taskmonk.entities BatchStatus .. java:import:: io.taskmonk.entities Task .. java:import:: org.slf4j Logger .. java:import:: org.slf4j LoggerFactory MessageListener =============== .. java:package:: io.taskmonk.streaming :noindex: .. java:type:: public interface MessageListener Interface for handling messages from Taskmonk Fields ------ logger ^^^^^^ .. java:field:: public static final Logger logger :outertype: MessageListener Methods ------- onBatchStatus ^^^^^^^^^^^^^ .. java:method:: public MessageAction onBatchStatus(BatchStatus batchStatus) :outertype: MessageListener Handle batchStatus :param batchStatus: \ :java:ref:`BatchStatus`\ :return: \ :java:ref:`MessageAction`\ The action to take on handling message onGenericMessage ^^^^^^^^^^^^^^^^ .. java:method:: public MessageAction onGenericMessage(String message) :outertype: MessageListener Handle any generic message :param message: :return: \ :java:ref:`MessageAction`\ The action to take on handling message onTaskUpdate ^^^^^^^^^^^^ .. java:method:: public MessageAction onTaskUpdate(Task task) :outertype: MessageListener Handle task update :param task: \ :java:ref:`Task`\ :return: \ :java:ref:`MessageAction`\ The action to take on handling message