main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java
/**
     * Adds a PDP to the tracker and starts its timer. If a timer is already running, the
     * old timer is cancelled.
     *
     * @param pdpName name of the PDP
     */
Adds a PDP to the tracker and starts its timer. If a timer is already running, the
old timer is cancelled.

@param pdpName name of the PDP
Adds a PDP to the tracker and starts its timer . If a timer is already running the old timer is cancelled . @param pdpName name of the PDP
public void add(String pdpName) {
        synchronized (modifyLock) {
            Timer timer = pdp2timer.remove(pdpName);
            if (timer != null) {
                timer.cancel();
            }
            timer = timers.register(pdpName, this::handleTimeout);
            pdp2timer.put(pdpName, timer);
        }
    }
public void add ( String pdpName ) { synchronized ( modifyLock ) { Timer timer = pdp2timer . remove ( pdpName ) ; if ( timer != null ) { timer . cancel ( ) ; } timer = timers . register ( pdpName , this :: handleTimeout ) ; pdp2timer . put ( pdpName , timer ) ; } }
Adds a PDP to the tracker and starts its timer.
Adds a PDP to the tracker and starts its timer .