Sets the connection mode of the channel.<br>
Possible modes: send_only, recv_only, inactive, send_recv, conference, network_loopback.

@param connectionMode the new connection mode adopted by the channel
545679
public void updateMode(ConnectionMode connectionMode) {
        switch (connectionMode) {
            case SEND_ONLY:
                this.rtpHandler.setReceivable(false);
                this.rtpHandler.setLoopable(false);
                audioComponent.updateMode(false, true);
                oobComponent.updateMode(false, true);
                this.rtpHandler.deactivate();
                this.transmitter.activate();
                break;
            case RECV_ONLY:
                this.rtpHandler.setReceivable(true);
                this.rtpHandler.setLoopable(false);
                audioComponent.updateMode(true, false);
                oobComponent.updateMode(true, false);
                this.rtpHandler.activate();
                this.transmitter.deactivate();
                break;
            case INACTIVE:
                this.rtpHandler.setReceivable(false);
                this.rtpHandler.setLoopable(false);
                audioComponent.updateMode(false, false);
                oobComponent.updateMode(false, false);
                this.rtpHandler.deactivate();
                this.transmitter.deactivate();
                break;
            case SEND_RECV:
            case CONFERENCE:
                this.rtpHandler.setReceivable(true);
                this.rtpHandler.setLoopable(false);
                audioComponent.updateMode(true, true);
                oobComponent.updateMode(true, true);
                this.rtpHandler.activate();
                this.transmitter.activate();
                break;
            case NETWORK_LOOPBACK:
                this.rtpHandler.setReceivable(false);
                this.rtpHandler.setLoopable(true);
                audioComponent.updateMode(false, false);
                oobComponent.updateMode(false, false);
                this.rtpHandler.deactivate();
                this.transmitter.deactivate();
                break;
            default:
                break;
        }

        boolean connectImmediately = false;
        if (this.remotePeer != null) {
            connectImmediately = udpManager.connectImmediately((InetSocketAddress) this.remotePeer);
        }

        if (udpManager.getRtpTimeout() > 0 && this.remotePeer != null && !connectImmediately) {
            if (this.rtpHandler.isReceivable()) {
                this.statistics.setLastHeartbeat(scheduler.getClock().getTime());
                scheduler.submitHeatbeat(heartBeat);
            } else {
                heartBeat.cancel();
            }
        }
    }
641999
private void setStatus(ConnectionStatus status){
        if(LOGGER.isDebugEnabled()){
            LOGGER.debug("Set status to - " + status);
        }
        if(! this.status.equals(status)){
            ConnectionStatus pre = this.status;
            this.status = status;
            eventThread.queueClientEvent(new ClientStatusEvent(pre, status));
        }
    }
71359
@Override
	public final void setJMSDeliveryMode(int deliveryMode) throws JMSException
    {
        if (deliveryMode != DeliveryMode.PERSISTENT &&
            deliveryMode != DeliveryMode.NON_PERSISTENT)
            throw new FFMQException("Invalid delivery mode : "+deliveryMode,"INVALID_DELIVERY_MODE");
            
        assertDeserializationLevel(MessageSerializationLevel.FULL);
        this.deliveryMode = deliveryMode;
    }
767181
public void setNightMode(boolean MODE) { 
        if (null == nightMode) {
            _nightMode = MODE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            nightMode.set(MODE);
        }
    }
876609
public void setSelectMode(final SelectMode selectMode) {
		switch (selectMode) {
			case MULTIPLE:
				setSelectionMode(SelectionMode.MULTIPLE);
				break;
			case SINGLE:
				setSelectionMode(SelectionMode.SINGLE);
				break;
			default:
				setSelectionMode(SelectionMode.NONE);
		}
	}
1368417
public void addChangePlayModeCommand(PlayMode playMode) {
        StringBuilder buf = new StringBuilder();
        buf.append("(change_mode ");
        buf.append(playMode);
        buf.append(')');
        fifo.add(fifo.size(), buf.toString());
    }
288118
public void setConnectionValidated(final boolean validated) {
        final boolean old = this.connectionValidated;
        this.connectionValidated = validated;

        this.pcs.firePropertyChange("connectionValidated", 
                                    old, this.connectionValidated);

    }
317102
public T setDeployMode(String mode) {
    checkNotNull(mode, "mode");
    builder.deployMode = mode;
    return self();
  }
1278774
public void switchMode(int mode) {
        if (this.mode != mode) {
            this.mode = mode;

            switch (mode) {
                case MODE_GENERAL:
                case MODE_PUSH:
                    transportPool.switchMode(TransportPool.MODE_DEFAULT);
                    break;
                case MODE_GENERAL_LOW_MODE:
                case MODE_FILE:
                    transportPool.switchMode(TransportPool.MODE_LOWMODE);
                    break;

            }

            this.actionsActor.sendOnce(new RequestPingDelay());
        }
    }
295979
@Override
    public void setConnection(RTMPConnection conn) {
        log.trace("Adding connection: {}", conn);
        int id = conn.getId();
        if (id == -1) {
            log.debug("Connection has unsupported id, using session id hash");
            id = conn.getSessionId().hashCode();
        }
        log.debug("Connection id: {} session id hash: {}", conn.getId(), conn.getSessionId().hashCode());
    }
575567
public void setPaginationMode(final PaginationMode paginationMode) {
		getOrCreateComponentModel().paginationMode = paginationMode == null ? PaginationMode.NONE : paginationMode;
	}
902371
public void setErrorMode(@NonNull ErrorMode errorMode) {
        this.errorMode = errorMode;
        errorTextView.setVisibility(errorMode == ErrorMode.WhenInvalid ? INVISIBLE : errorMode == ErrorMode.Always ? VISIBLE : GONE);
    }
160729
@Override
	public void setMaxHostConnections(int maxHostConnections) {
    	connectionManager.getParams().setDefaultMaxConnectionsPerHost(maxHostConnections);
    	connectionManager.getParams().setMaxConnectionsPerHost(hostConfiguration, maxHostConnections);
    }
177255
public void setInboundConnectionInfo(Map<String, Object> connectionInfo) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "setInboundConnectionInfo");
        this.inboundConnectionInfo = connectionInfo;
    }
1068907
public void setDialogMode(int mode) {
        if (!(mode == OK_CANCEL_DIALOG || mode == CLOSE_DIALOG)) {
            throw new IllegalArgumentException("invalid dialog mode");
        }

        if (okButton != null) {
            buttonPane.remove(okButton);
            okButton = null;
        }
        if (cancelOrCloseButton != null) {
            buttonPane.remove(cancelOrCloseButton);
            cancelOrCloseButton = null;
        }

        switch (mode) {
            case OK_CANCEL_DIALOG:
                okButton
                        = new JButton(ResourceManager.all(BaseDialog.class).getString("ok"));
                okButton.addActionListener(okAction);
                buttonPane.add(okButton);
                cancelOrCloseButton
                        = new JButton(
                                ResourceManager.all(BaseDialog.class).getString("cancel"));
                cancelOrCloseButton.addActionListener(cancelOrCloseAction);
                buttonPane.add(cancelOrCloseButton);
                getRootPane().setDefaultButton(okButton);
                break;
            case CLOSE_DIALOG:
                cancelOrCloseButton
                        = new JButton(ResourceManager.all(BaseDialog.class).getString("close"));
                cancelOrCloseButton.addActionListener(cancelOrCloseAction);
                buttonPane.add(cancelOrCloseButton);
                break;
        }

        this.mode = mode;
    }
672382
public final void setDialogHeaderIconTintMode(@NonNull final PorterDuff.Mode mode) {
        Condition.INSTANCE.ensureNotNull(mode, "The dialog icon tint mode may not be null");
        this.dialogHeaderIconTintMode = mode;
    }
424889
public void setDispatchMode(DispatchMode argMode){
    	if(argMode == null){
    		argMode = DispatchMode.SINGLE_THREAD;
    	}
    	if(argMode == DispatchMode.SINGLE_THREAD){
    		startBackgroundThread();
    	}
    	mode = argMode;
    }