/*
(non-Javadoc)

@see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#setCorrupt(boolean)
480655
@Override
    public synchronized void setCorrupt(boolean newCorrupt)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setCorrupt", Boolean.valueOf(newCorrupt));

        boolean oldCorrupt = _isCorruptOrIndoubt;
        _isCorruptOrIndoubt = newCorrupt;

        // PK54812 We need to pass this through to the destination manager to
        // actually change the state of the destination.
        if (newCorrupt && !oldCorrupt)
        {
            destinationManager.corruptDestination(this);

            // Log a message with details of the destination that is corrupt
            SibTr.info(tc_cwsik, "DELIVERY_ERROR_SIRC_27",
                       new Object[] { getName() + " " + getUuid().toString() });
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setCorrupt");
    }
195847
public void setFailure(Throwable cause) {
        if (this.isCancelled()) {
            this.releaseIfNeed(result);
            return;
        }
        if (setFailure0(cause)) {
            notifyListeners();
            return;
        }
        throw new IllegalStateException("complete already: " + this, cause);
    }
548084
public void setRollbackOnly()
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled()) { // d173022.3
            Tr.entry(tc, "setRollbackOnly", this);
        }

        LocalTransactionCoordinator lCoord = getLocalCoord();
        if (lCoord != null) {
            lCoord.setRollbackOnly();
        } else {
            try {
                txService.setRollbackOnly(); //LIDB1673.2.1.5
            } catch (Exception e) { //LIDB1673.2.1.5 SystemException

                // Shouldn't get here
                FFDCFilter.processException(e, CLASS_NAME + ".setRollbackOnly",
                                            "556", this);
                throw new IllegalStateException("No active transaction");
            }
        }
        if (isTraceOn && tc.isEntryEnabled()) { // d173022.3
            Tr.exit(tc, "setRollbackOnly");
        }
    }
1207395
protected void setDestReference(Destination d) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setDestReference", d);
        dest = d;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setDestReference");
    }
695651
@Override
    public final void setReportPassMsgId(Boolean value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportPassMsgId", value);
        if (value != null) {
            getApi().setField(JsApiAccess.REPORTPASSMSGID_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTPASSMSGID, JsApiAccess.IS_REPORTPASSMSGID_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportPassMsgId");
    }
659958
public final void setReliability(Reliability value) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setReliability to " + value);
    /* Get the int value of the Reliability instance and set it in the field  */
    jmo.setField(ControlAccess.RELIABILITY, value.toByte());
  }
1235898
@Override
    public void setIsolationLevel(IsolationLevel level) throws IllegalStateException {
        if(level != IsolationLevels.SNAPSHOT){
            throw new IllegalStateException("Only IsolationLevels.SNAPSHOT level supported.");
        }else{
            super.setIsolationLevel(level);
        }
    }
1148371
@Override
    public void setDestination(Destination destination) {
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "setDestination", destination);
        }
        _destination = destination;
    }
294162
public void setBasicTraceDetail(SIDestinationAddress destinationAddress, 
                                  DestinationType destinationType,
                                  SIBusMessage message)
  {
    if (destinationAddress == null)
    {
      validateAndPutProperty("BusName", "");
      validateAndPutProperty("DestinationName", "");
    }
    else
    {
      validateAndPutProperty("BusName", destinationAddress.getBusName());
      validateAndPutProperty("DestinationName", destinationAddress.getDestinationName());
    }
    
    validateAndPutProperty("DestinationType", destinationType);
    
    if (message == null)
    {
      validateAndPutProperty("SystemMessageID", "");
      validateAndPutProperty("Priority", "");
      validateAndPutProperty("Reliability", "");
      validateAndPutProperty("Discriminator","");
    }
    else
    {
      validateAndPutProperty("SystemMessageID", message.getSystemMessageId());
      validateAndPutProperty("Priority", message.getPriority());
      validateAndPutProperty("Reliability", message.getReliability());
      validateAndPutProperty("Discriminator",message.getDiscriminator());
    }
  }
278795
static final <K,V> void setEntryAt(HashEntry<K,V>[] tab, int i,
                                       HashEntry<K,V> e) {
        UNSAFE.putOrderedObject(tab, ((long)i << TSHIFT) + TBASE, e);
    }
415282
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL, target = "(id=unbound)")
    protected void setLongRunningPolicy(ConcurrencyPolicy svc) {
        longRunningPolicyExecutorRef.set(svc.getExecutor());
    }
756667
public static void setToDefault ()
  {
    s_aRWLock.writeLocked ( () -> {
      s_nMaxMailQueueLen = DEFAULT_MAX_QUEUE_LENGTH;
      s_nMaxMailSendCount = DEFAULT_MAX_SEND_COUNT;
      s_bUseSSL = DEFAULT_USE_SSL;
      s_bUseSTARTTLS = DEFAULT_USE_STARTTLS;
      s_nConnectionTimeoutMilliSecs = DEFAULT_CONNECT_TIMEOUT_MILLISECS;
      s_nTimeoutMilliSecs = DEFAULT_TIMEOUT_MILLISECS;
      s_bDebugSMTP = GlobalDebug.isDebugMode ();
      s_aConnectionListeners.clear ();
      s_aEmailDataTransportListeners.clear ();
    });
  }
551727
@Override
	public void setCurrentValue(final int value) throws IOException {

		// check boundaries
		final int newValue = getValueAccordingBoundaries(value);

		// set wipers according nonVolatileMode
		doWiperAction(new WiperAction() {

			@Override
			public void run(final boolean nonVolatile) throws IOException {

				controller.setValue(DeviceControllerChannel.valueOf(channel), newValue,
						nonVolatile);

			}

		});

		// set currentValue only if volatile-wiper is affected
		if (nonVolatileMode == MicrochipPotentiometerNonVolatileMode.NONVOLATILE_ONLY) {
			return;
		}

		// save current value
		currentValue = newValue;

	}
857534
@FFDCIgnore(NoSuchMethodException.class)
    private void setRRSTransactional() {
        try {
            ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec);
        } catch (NoSuchMethodException x) {
            ivRRSTransactional = false;
        } catch (Exception x) {
            ivRRSTransactional = x == null; // always false - avoid a FindBugs warning by using the value of x in some trivial way
        }
    }
576529
@InterfaceAudience.Public
    public void setContinuous(boolean isContinous) {
        if (isContinous) {
            this.lifecycle = Lifecycle.CONTINUOUS;
            replicationInternal.setLifecycle(Lifecycle.CONTINUOUS);
        } else {
            this.lifecycle = Lifecycle.ONESHOT;
            replicationInternal.setLifecycle(Lifecycle.ONESHOT);
        }
    }
1005881
@Override
    public synchronized void setAutoCommit(boolean autocommit) {

        if (isClosed) {
            return;
        }

        if (autocommit != isAutoCommit) {
            commit(false);

            isAutoCommit = autocommit;
        }
    }
827921
@Override
    public final void setReportFeedback(Integer value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportFeedback", value);
        if (value != null) {
            // if the value fits in a byte then we set the value both into the byte and integer
            // versions of the feedback field. This may or may not be a redundant operation.
            // If the message is backed by an MQ encapsulation then we end up setting the value
            // in the real MQMD twice - but if its native JMF we need to set the value in both
            // fields so that if we send the message off to an old style client who uses the
            // old compatible schema, they can still read the feedback value from the byte field.
            if ((value.intValue() >= Byte.MIN_VALUE) && (value.intValue() <= Byte.MAX_VALUE)) { // 254045
                getApi().setField(JsApiAccess.REPORTFEEDBACK_VALUE, Byte.valueOf(value.byteValue()));
            }
            getApi().setField(JsApiAccess.REPORTFEEDBACKINT_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTFEEDBACK, JsApiAccess.IS_REPORTFEEDBACK_UNSET);
            getApi().setChoiceField(JsApiAccess.REPORTFEEDBACKINT, JsApiAccess.IS_REPORTFEEDBACKINT_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportFeedback");
    }