Add timestamp to PDP requests 86/82686/1
authorJim Hahn <jrh3@att.com>
Tue, 19 Mar 2019 14:32:28 +0000 (10:32 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 19 Mar 2019 14:32:28 +0000 (10:32 -0400)
Change-Id: Ic529e166ce4cdc93830f7da06db5ae752d86260d
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java

index 7d8a611..4fcd445 100644 (file)
@@ -41,6 +41,12 @@ public class PdpMessage {
     private PdpMessageType messageName;
     private String requestId;
 
+    /**
+     * Time-stamp, in milliseconds, when the message was created. Defaults to the current
+     * time.
+     */
+    private long timestampMs = System.currentTimeMillis();
+
     /**
      * Constructor for instantiating PdpMessage class with message name.
      *