1 package org.openecomp.mso.client.dmaap;
3 public interface Consumer {
6 * Should this consumer continue to consume messages from the topic?
9 public boolean continuePolling();
11 * Process a message from a DMaaP topic
16 public void processMessage(String message) throws Exception;
18 * Has the request been accepted by the receiving system?
19 * Should the consumer move to processing messages?
24 public boolean isAccepted(String message);
26 * The request id to filter messages on
29 public String getRequestId();
31 * Logic that defines when the consumer should stop processing messages
33 public void stopProcessingMessages();