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