main/src/main/java/org/onap/policy/pap/main/comm/PdpRequests.java
/**
     * Stops publishing requests of a lower priority than the specified priority.
     *
     * @param priority priority of interest
     * @return the token that was being used to publish a lower priority request
     */
Stops publishing requests of a lower priority than the specified priority.
@param priority priority of interest
@return the token that was being used to publish a lower priority request
Stops publishing requests of a lower priority than the specified priority . @param priority priority of interest @return the token that was being used to publish a lower priority request
private QueueToken<PdpMessage> stopPublishingLowerPriority(int priority) {
        for (int x = 0; x < priority; ++x) {
            Request single = singletons[x];
            if (single != null) {
                logger.info("{} stop publishing priority {}", pdpName, single.getPriority());
                QueueToken<PdpMessage> token = single.stopPublishing(false);
                if (token != null) {
                    return token;
                }
            }
        }
        return null;
    }
private QueueToken < PdpMessage > stopPublishingLowerPriority ( int priority ) { for ( int x = 0 ; x < priority ; ++ x ) { Request single = singletons [ x ] ; if ( single != null ) { logger . info ( "{} stop publishing priority {}" , pdpName , single . getPriority ( ) ) ; QueueToken < PdpMessage > token = single . stopPublishing ( false ) ; if ( token != null ) { return token ; } } } return null ; }
Stops publishing requests of a lower priority than the specified priority.
Stops publishing requests of a lower priority than the specified priority .
// stop singletons // found one that was publishing