use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendSubscriptionPublication.
@Override
public void sendSubscriptionPublication(String fromParticipantId, Set<String> toParticipantIds, SubscriptionPublication publication, MessagingQos messagingQos) {
for (String toParticipantId : toParticipantIds) {
MutableMessage message = messageFactory.createPublication(fromParticipantId, toParticipantId, publication, messagingQos);
messageSender.sendMessage(message);
}
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class DispatcherImpl method sendReply.
public void sendReply(final String fromParticipantId, final String toParticipantId, Reply reply, final long expiryDateMs, Map<String, String> customHeaders, final boolean compress) throws IOException {
MessagingQos messagingQos = new MessagingQos(expiryDateMs);
messagingQos.getCustomMessageHeaders().putAll(customHeaders);
messagingQos.setCompress(compress);
MutableMessage message = messageFactory.createReply(fromParticipantId, toParticipantId, reply, messagingQos);
messageSender.sendMessage(message);
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class MutableMessageFactory method createSubscriptionReply.
public MutableMessage createSubscriptionReply(final String fromParticipantId, final String toParticipantId, SubscriptionReply subscriptionReply, MessagingQos messagingQos) {
MutableMessage msg = createMessage(Message.VALUE_MESSAGE_TYPE_SUBSCRIPTION_REPLY, fromParticipantId, toParticipantId, subscriptionReply, messagingQos);
addRequestReplyIdCustomHeader(msg, subscriptionReply.getSubscriptionId());
return msg;
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class MutableMessageFactory method createSubscriptionStop.
public MutableMessage createSubscriptionStop(String fromParticipantId, String toParticipantId, SubscriptionStop subscriptionStop, MessagingQos messagingQos) {
MutableMessage msg = createMessage(Message.VALUE_MESSAGE_TYPE_SUBSCRIPTION_STOP, fromParticipantId, toParticipantId, subscriptionStop, messagingQos);
addRequestReplyIdCustomHeader(msg, subscriptionStop.getSubscriptionId());
return msg;
}
use of joynr.MutableMessage in project joynr by bmwcarit.
the class MutableMessageFactory method createReply.
public MutableMessage createReply(final String fromParticipantId, final String toParticipantId, Reply reply, MessagingQos messagingQos) {
MutableMessage msg = createMessage(Message.VALUE_MESSAGE_TYPE_REPLY, fromParticipantId, toParticipantId, reply, messagingQos, false);
addRequestReplyIdCustomHeader(msg, reply.getRequestReplyId());
return msg;
}
Aggregations