Search in sources :

Example 1 with IMessagingMulticastSubscriber

use of io.joynr.messaging.IMessagingMulticastSubscriber in project joynr by bmwcarit.

the class AbstractMessageRouter method performSubscriptionOperation.

private void performSubscriptionOperation(String multicastId, String providerParticipantId, SubscriptionOperation operation) {
    Address providerAddress = routingTable.get(providerParticipantId);
    IMessagingSkeleton messagingSkeleton = messagingSkeletonFactory.getSkeleton(providerAddress);
    if (messagingSkeleton != null && messagingSkeleton instanceof IMessagingMulticastSubscriber) {
        operation.perform((IMessagingMulticastSubscriber) messagingSkeleton);
    } else {
        logger.trace("No messaging skeleton found for address {}, not performing multicast subscription.", providerAddress);
    }
}
Also used : IMessagingMulticastSubscriber(io.joynr.messaging.IMessagingMulticastSubscriber) IMessagingSkeleton(io.joynr.messaging.IMessagingSkeleton) Address(joynr.system.RoutingTypes.Address)

Aggregations

IMessagingMulticastSubscriber (io.joynr.messaging.IMessagingMulticastSubscriber)1 IMessagingSkeleton (io.joynr.messaging.IMessagingSkeleton)1 Address (joynr.system.RoutingTypes.Address)1