From: Jim Hahn Date: Tue, 19 Mar 2019 14:32:28 +0000 (-0400) Subject: Add timestamp to PDP requests X-Git-Tag: 1.4.0~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d90b1d217364e184ba91e56ff85cdc0529ee9004;p=policy%2Fcommon.git Add timestamp to PDP requests Change-Id: Ic529e166ce4cdc93830f7da06db5ae752d86260d Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- 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 @@ -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. *