main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
/**
     * Configures and adds a request to the map.
     *
     * @param request the request to be added
     */
Configures and adds a request to the map.
@param request the request to be added
Configures and adds a request to the map . @param request the request to be added
private void addSingleton(Request request) {
        synchronized (modifyLock) {
            PdpRequests requests = pdp2requests.computeIfAbsent(request.getMessage().getName(), this::makePdpRequests);
            request.setListener(new SingletonListener(requests, request));
            requests.addSingleton(request);
        }
    }
private void addSingleton ( Request request ) { synchronized ( modifyLock ) { PdpRequests requests = pdp2requests . computeIfAbsent ( request . getMessage ( ) . getName ( ) , this :: makePdpRequests ) ; request . setListener ( new SingletonListener ( requests , request ) ) ; requests . addSingleton ( request ) ; } }
Configures and adds a request to the map.
Configures and adds a request to the map .