Sends broadcast.<p>

@param sessionIds to send broadcast to
960284
protected void sendBroadcast(Set<String> sessionIds) {

        if (sessionIds == null) {
            OpenCms.getSessionManager().sendBroadcast(
                A_CmsUI.getCmsObject(),
                m_message.getValue(),
                m_repeat.getValue().booleanValue());
            USER_BROADCAST.put(
                A_CmsUI.getCmsObject().getRequestContext().getCurrentUser(),
                new CmsBroadcast(
                    A_CmsUI.getCmsObject().getRequestContext().getCurrentUser(),
                    m_message.getValue(),
                    m_repeat.getValue().booleanValue()));
        } else {
            for (String id : sessionIds) {
                OpenCms.getSessionManager().sendBroadcast(
                    A_CmsUI.getCmsObject(),
                    m_message.getValue(),
                    id,
                    m_repeat.getValue().booleanValue());
            }
        }
    }
98673
public void onCandidate(long sessionId, int index, String id, String sdp) {
        send(new PeerConnectionActor.OnCandidate(sessionId, index, id, sdp));
    }
1250961
protected void send(ComposableBody body) throws BOSHException {
        if (!connected) {
            throw new IllegalStateException("Not connected to a server!");
        }
        if (body == null) {
            throw new NullPointerException("Body mustn't be null!");
        }
        if (sessionID != null) {
            body = body.rebuild().setAttribute(
                    BodyQName.create(BOSH_URI, "sid"), sessionID).build();
        }
        client.send(body);
    }
492816
public void setNatGatewayIds(java.util.Collection<String> natGatewayIds) {
        if (natGatewayIds == null) {
            this.natGatewayIds = null;
            return;
        }

        this.natGatewayIds = new com.amazonaws.internal.SdkInternalList<String>(natGatewayIds);
    }
361249
public void setSpotInstanceRequestIds(java.util.Collection<String> spotInstanceRequestIds) {
        if (spotInstanceRequestIds == null) {
            this.spotInstanceRequestIds = null;
            return;
        }

        this.spotInstanceRequestIds = new com.amazonaws.internal.SdkInternalList<String>(spotInstanceRequestIds);
    }
288095
protected void subscriptionRequestSent(IoSession session,
			SubscriptionMessage subscriptionMessage) {

		this.sentSubscription = subscriptionMessage;
		log.info("Sent {}", subscriptionMessage);
	}
1348012
private void sendAnnouncement(InetAddress broadcastAddress) {
        try {
            DatagramPacket announcement = new DatagramPacket(announcementBytes, announcementBytes.length,
                    broadcastAddress, DeviceFinder.ANNOUNCEMENT_PORT);
            socket.get().send(announcement);
            Thread.sleep(getAnnounceInterval());
        } catch (Throwable t) {
            logger.warn("Unable to send announcement packet, shutting down", t);
            stop();
        }
    }
141164
public void onCandidate(long sessionId, int index, String id, String sdp) {
        send(new RTCCandidate(deviceId, sessionId, index, id, sdp));
    }
1046777
public static List<WriteFuture> broadcast(Object message, IoSession... sessions) {
        if (sessions == null) {
            sessions = EMPTY_SESSIONS;
        }
        
        List<WriteFuture> answer = new ArrayList<>(sessions.length);
        if (message instanceof IoBuffer) {
            for (IoSession s: sessions) {
                answer.add(s.write(((IoBuffer) message).duplicate()));
            }
        } else {
            for (IoSession s: sessions) {
                answer.add(s.write(message));
            }
        }
        return answer;
    }
195145
public void setInstanceIds(java.util.Collection<InstanceIdDetail> instanceIds) {
        if (instanceIds == null) {
            this.instanceIds = null;
            return;
        }

        this.instanceIds = new java.util.ArrayList<InstanceIdDetail>(instanceIds);
    }
1070631
@Override
  public void sendRegistrationTerminationRequest(JRegistrationTerminationRequest request)
      throws InternalException, IllegalDiameterStateException, RouteException, OverloadException {
    send(Event.Type.SEND_MESSAGE, request, null);
  }
1328821
public void setPoolIds(java.util.Collection<String> poolIds) {
        if (poolIds == null) {
            this.poolIds = null;
            return;
        }

        this.poolIds = new com.amazonaws.internal.SdkInternalList<String>(poolIds);
    }
396228
public void onMessage(String sessionId, ByteBuffer buffer) {
        WebSocketSession session = WsonrpcRemotes.getSession(sessionId);
        byte[] bytes = buffer.array();
        WsonrpcSessions.begin(session);
        try {
            fireMessage(sessionId, bytes);
            wsonrpcControl.handle(session, bytes);
        } catch (Exception ex) {
            onError(session.getId(), ex);
        } finally {
            WsonrpcSessions.end();
        }
    }
1234166
@ObjectiveCName("sendMessageWithPeer:withText:withMarkdownText:withMentions:autoDetect:")
    public void sendMessage(@NotNull Peer peer, @NotNull String text, @Nullable String markDownText,
                            @Nullable ArrayList<Integer> mentions, boolean autoDetect) {
        modules.getMessagesModule().sendMessage(peer, text, markDownText, mentions, autoDetect);
    }
796870
public Buffer getBroadcastQueue(String sessionId) {

        CmsSessionInfo sessionInfo = getSessionInfo(getSessionUUID(sessionId));
        if (sessionInfo == null) {
            // return empty message buffer if the session is gone or not available
            return BufferUtils.synchronizedBuffer(new CircularFifoBuffer(CmsSessionInfo.QUEUE_SIZE));
        }
        return sessionInfo.getBroadcastQueue();
    }
688033
public void broadcast(Iterator<String> peers, Message message) {
    while (peers.hasNext()) {
      send(peers.next(), message);
    }
  }
932172
public void setServiceIds(java.util.Collection<ServiceId> serviceIds) {
        if (serviceIds == null) {
            this.serviceIds = null;
            return;
        }

        this.serviceIds = new java.util.ArrayList<ServiceId>(serviceIds);
    }