use of joynr.MutableMessage in project joynr by bmwcarit.
the class AbstractMessageSender method setReplyToAddress.
protected synchronized void setReplyToAddress(String replyToAddress) {
this.replyToAddress = replyToAddress;
for (MutableMessage queuedMessage : noReplyToAddressQueue) {
queuedMessage.setReplyTo(replyToAddress);
routeMutableMessage(queuedMessage);
}
noReplyToAddressQueue.clear();
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendSubscriptionRequest.
// CHECKSTYLE:ON
@Override
public void sendSubscriptionRequest(String fromParticipantId, Set<DiscoveryEntryWithMetaInfo> toDiscoveryEntries, SubscriptionRequest subscriptionRequest, MessagingQos messagingQos) {
for (DiscoveryEntryWithMetaInfo toDiscoveryEntry : toDiscoveryEntries) {
MutableMessage message = messageFactory.createSubscriptionRequest(fromParticipantId, toDiscoveryEntry.getParticipantId(), subscriptionRequest, messagingQos);
message.setLocalMessage(toDiscoveryEntry.getIsLocal());
if (subscriptionRequest instanceof MulticastSubscriptionRequest) {
String multicastId = ((MulticastSubscriptionRequest) subscriptionRequest).getMulticastId();
messageRouter.addMulticastReceiver(multicastId, fromParticipantId, toDiscoveryEntry.getParticipantId());
}
logger.debug("Send SubscriptionRequest: subscriptionId: {}, messageId: {}, proxy participantId: {}, provider participantId: {}", subscriptionRequest.getSubscriptionId(), message.getId(), fromParticipantId, toDiscoveryEntry.getParticipantId());
messageSender.sendMessage(message);
}
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendSubscriptionStop.
@Override
public void sendSubscriptionStop(String fromParticipantId, Set<DiscoveryEntryWithMetaInfo> toDiscoveryEntries, SubscriptionStop subscriptionStop, MessagingQos messagingQos) {
for (DiscoveryEntryWithMetaInfo toDiscoveryEntry : toDiscoveryEntries) {
MutableMessage message = messageFactory.createSubscriptionStop(fromParticipantId, toDiscoveryEntry.getParticipantId(), subscriptionStop, messagingQos);
message.setLocalMessage(toDiscoveryEntry.getIsLocal());
logger.debug("UNREGISTER SUBSCRIPTION call proxy: subscriptionId: {}, messageId: {}, proxy participantId: {}, " + "provider participantId: {}", subscriptionStop.getSubscriptionId(), message.getId(), fromParticipantId, toDiscoveryEntry.getParticipantId());
messageSender.sendMessage(message);
}
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendSubscriptionReply.
@Override
public void sendSubscriptionReply(final String fromParticipantId, final String toParticipantId, SubscriptionReply subscriptionReply, MessagingQos messagingQos) {
MutableMessage message = messageFactory.createSubscriptionReply(fromParticipantId, toParticipantId, subscriptionReply, messagingQos);
messageSender.sendMessage(message);
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendMulticast.
@Override
public void sendMulticast(String fromParticipantId, MulticastPublication multicastPublication, MessagingQos messagingQos) {
MutableMessage message = messageFactory.createMulticast(fromParticipantId, multicastPublication, messagingQos);
messageSender.sendMessage(message);
}
Aggregations