PAP should discard old PDP messages 39/109239/3
authorJim Hahn <jrh3@att.com>
Tue, 16 Jun 2020 21:52:17 +0000 (17:52 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 17 Jun 2020 18:41:01 +0000 (14:41 -0400)
commit5cfff2b468a13e7b5ce068e58e899fcfe36537b3
tree95a3f9f64443cb7028afa90632bd412048ed05a0
parent169dd4b89bb02a4a644b748a07a0294a324715cb
PAP should discard old PDP messages

Modified PAP to discard any messages old than 10 minutes so that
if PAP is unable to communicate with DMaaP and then suddently gets
flooded, it will discard old messages.
Updates per review comments
- made the "max message age" configurable, with a default of 10 minutes

Issue-ID: POLICY-2170
Change-Id: I541c03aabf29482af12a07f51eeb5888bbafbf31
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/comm/PdpHeartbeatListener.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
main/src/main/java/org/onap/policy/pap/main/parameters/PdpParameters.java
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java
main/src/test/java/org/onap/policy/pap/main/parameters/TestPdpParameters.java
main/src/test/resources/parameters/PapConfigParametersStd.json