Generate notifications when policies change
[policy/pap.git] / main / src / main / java / org / onap / policy / pap / main / parameters / RequestParams.java
index b908386..57d4dda 100644 (file)
@@ -22,6 +22,7 @@ package org.onap.policy.pap.main.parameters;
 
 import lombok.Getter;
 import org.onap.policy.common.endpoints.listeners.RequestIdDispatcher;
+import org.onap.policy.models.pdp.concepts.PdpMessage;
 import org.onap.policy.models.pdp.concepts.PdpStatus;
 import org.onap.policy.pap.main.comm.Publisher;
 import org.onap.policy.pap.main.comm.TimerManager;
@@ -32,15 +33,15 @@ import org.onap.policy.pap.main.comm.TimerManager;
  */
 @Getter
 public class RequestParams {
-    private Publisher publisher;
+    private Publisher<PdpMessage> pdpPublisher;
     private RequestIdDispatcher<PdpStatus> responseDispatcher;
     private Object modifyLock;
     private TimerManager timers;
     private int maxRetryCount;
 
 
-    public RequestParams setPublisher(Publisher publisher) {
-        this.publisher = publisher;
+    public RequestParams setPdpPublisher(Publisher<PdpMessage> publisher) {
+        this.pdpPublisher = publisher;
         return this;
     }
 
@@ -68,7 +69,7 @@ public class RequestParams {
      * Validates the parameters.
      */
     public void validate() {
-        if (publisher == null) {
+        if (pdpPublisher == null) {
             throw new IllegalArgumentException("missing publisher");
         }