main/src/main/java/org/onap/policy/pap/main/comm/PdpRequests.java
/**
     * Checks for an existing singleton request.
     *
     * @param request the request of interest
     * @return {@code true} if a similar singleton request already exists, {@code false}
     *         otherwise
     */
Checks for an existing singleton request.
@param request the request of interest
@return  true if a similar singleton request already exists,  false
otherwise
Checks for an existing singleton request . @param request the request of interest @return true if a similar singleton request already exists false otherwise
private boolean checkExistingSingleton(Request request) {
        Request exsingle = singletons[request.getPriority()];
        if (exsingle == null) {
            return false;
        }
        if (exsingle.isSameContent(request)) {
            logger.info("{} message content unchanged for {}", pdpName, exsingle.getClass().getSimpleName());
            return true;
        }
        PdpMessage message = request.getMessage();
        exsingle.reconfigure(message, null);
        return true;
    }
private boolean checkExistingSingleton ( Request request ) { Request exsingle = singletons [ request . getPriority ( ) ] ; if ( exsingle == null ) { return false ; } if ( exsingle . isSameContent ( request ) ) { logger . info ( "{} message content unchanged for {}" , pdpName , exsingle . getClass ( ) . getSimpleName ( ) ) ; return true ; } PdpMessage message = request . getMessage ( ) ; exsingle . reconfigure ( message , null ) ; return true ; }
Checks for an existing singleton request.
Checks for an existing singleton request .
// unchanged from existing request // reconfigure the existing request // still have a singleton in the queue for this request