aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java
index 7d8a6117..4fcd445f 100644
--- a/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java
+++ b/pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java
@@ -42,6 +42,12 @@ public class PdpMessage {
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.
*
* @param messageName the message name