main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
/**
     * Adds an UPDATE request to the map.
     *
     * @param update the UPDATE request or {@code null}
     */
Adds an UPDATE request to the map.
@param update the UPDATE request or  null
Adds an UPDATE request to the map . @param update the UPDATE request or null
public void addRequest(PdpUpdate update) {
        if (update == null) {
            return;
        }
        if (isBroadcast(update)) {
            throw new IllegalArgumentException(UNEXPECTED_BROADCAST + update);
        }
        RequestParams reqparams = new RequestParams()
            .setMaxRetryCount(params.getParams().getUpdateParameters().getMaxRetryCount())
            .setTimers(params.getUpdateTimers())
            .setModifyLock(params.getModifyLock())
            .setPublisher(params.getPublisher())
            .setResponseDispatcher(params.getResponseDispatcher());
        String name = update.getName() + " " + PdpUpdate.class.getSimpleName();
        UpdateReq request = new UpdateReq(reqparams, name, update);
        addSingleton(request);
    }
public void addRequest ( PdpUpdate update ) { if ( update == null ) { return ; } if ( isBroadcast ( update ) ) { throw new IllegalArgumentException ( UNEXPECTED_BROADCAST + update ) ; } RequestParams reqparams = new RequestParams ( ) . setMaxRetryCount ( params . getParams ( ) . getUpdateParameters ( ) . getMaxRetryCount ( ) ) . setTimers ( params . getUpdateTimers ( ) ) . setModifyLock ( params . getModifyLock ( ) ) . setPublisher ( params . getPublisher ( ) ) . setResponseDispatcher ( params . getResponseDispatcher ( ) ) ; String name = update . getName ( ) + " " + PdpUpdate . class . getSimpleName ( ) ; UpdateReq request = new UpdateReq ( reqparams , name , update ) ; addSingleton ( request ) ; }
Adds an UPDATE request to the map.
Adds an UPDATE request to the map .
// @formatter:off // @formatter:on