Generate notifications when policies change
[policy/pap.git] / main / src / main / java / org / onap / policy / pap / main / comm / msgdata / Request.java
index 1f69dcb..62aea78 100644 (file)
@@ -23,6 +23,7 @@ package org.onap.policy.pap.main.comm.msgdata;
 import org.onap.policy.models.pdp.concepts.PdpMessage;
 import org.onap.policy.models.pdp.concepts.PdpStatus;
 import org.onap.policy.pap.main.comm.QueueToken;
+import org.onap.policy.pap.main.notification.PolicyNotifier;
 
 /**
  * Request data, whose message may be changed at any point, possibly triggering a restart
@@ -60,6 +61,13 @@ public interface Request {
      */
     public void setListener(RequestListener listener);
 
+    /**
+     * Sets the notifier to track responses to the request.
+     *
+     * @param notifier notifier used to publish notifications
+     */
+    public void setNotifier(PolicyNotifier notifier);
+
     /**
      * Determines if this request is currently being published.
      *