From d90b1d217364e184ba91e56ff85cdc0529ee9004 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 19 Mar 2019 10:32:28 -0400 Subject: Add timestamp to PDP requests Change-Id: Ic529e166ce4cdc93830f7da06db5ae752d86260d Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- .../src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdp-common/src') 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. * -- cgit 1.2.3-korg