diff options
author | Jim Hahn <jrh3@att.com> | 2019-03-19 10:32:28 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-03-19 10:32:28 -0400 |
commit | d90b1d217364e184ba91e56ff85cdc0529ee9004 (patch) | |
tree | 9d1d525330e6c725da8c2ea11bb52bad3e8c292d | |
parent | f4d4cd1b885c5075f2c62e5c092d51562ce1c4e0 (diff) |
Add timestamp to PDP requests
Change-Id: Ic529e166ce4cdc93830f7da06db5ae752d86260d
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
-rw-r--r-- | pdp-common/src/main/java/org/onap/policy/pdp/common/models/PdpMessage.java | 6 |
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 |