Class JeeSharedSubscriptionsMqttMessagingSkeleton
- java.lang.Object
-
- io.joynr.messaging.routing.AbstractGlobalMessagingSkeleton
-
- io.joynr.messaging.mqtt.MqttMessagingSkeleton
-
- io.joynr.messaging.mqtt.SharedSubscriptionsMqttMessagingSkeleton
-
- io.joynr.jeeintegration.messaging.JeeSharedSubscriptionsMqttMessagingSkeleton
-
- All Implemented Interfaces:
IMessagingMulticastSubscriber,IMessagingSkeleton,IMqttMessagingSkeleton,MessageProcessedListener
public class JeeSharedSubscriptionsMqttMessagingSkeleton extends SharedSubscriptionsMqttMessagingSkeleton
Almost the same asSharedSubscriptionsMqttMessagingSkeletonbut separates the subscription to the replyTo topic from the subscription to the shared topic.It subscribes automatically to the replyTo topic when
subscribe()is called.
The subscription to the global topic has to be triggered manually if required.
-
-
Field Summary
-
Fields inherited from class io.joynr.messaging.mqtt.MqttMessagingSkeleton
maxIncomingMqttRequests
-
-
Constructor Summary
Constructors Constructor Description JeeSharedSubscriptionsMqttMessagingSkeleton(String ownTopic, int maxIncomingMqttRequests, boolean backpressureEnabled, int backpressureIncomingMqttRequestsUpperThreshold, int backpressureIncomingMqttRequestsLowerThreshold, String replyToTopic, MessageRouter messageRouter, MessageProcessedHandler messageProcessedHandler, MqttClientFactory mqttClientFactory, String channelId, MqttTopicPrefixProvider mqttTopicPrefixProvider, RawMessagingPreprocessor rawMessagingPreprocessor, Set<JoynrMessageProcessor> messageProcessors, JoynrStatusMetricsReceiver joynrStatusMetricsReceiver, String ownGbid, RoutingTable routingTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsubscribe()voidsubscribeToSharedTopic()-
Methods inherited from class io.joynr.messaging.mqtt.SharedSubscriptionsMqttMessagingSkeleton
requestAccepted, requestProcessed, subscribeToReplyTopic
-
Methods inherited from class io.joynr.messaging.mqtt.MqttMessagingSkeleton
getClient, getCurrentCountOfUnprocessedMqttRequests, getDroppedMessagesCount, getOwnTopic, init, messageProcessed, registerMulticastSubscription, shutdown, transmit, unregisterMulticastSubscription
-
Methods inherited from class io.joynr.messaging.routing.AbstractGlobalMessagingSkeleton
registerGlobalRoutingEntry, removeGlobalRoutingEntry
-
-
-
-
Constructor Detail
-
JeeSharedSubscriptionsMqttMessagingSkeleton
public JeeSharedSubscriptionsMqttMessagingSkeleton(String ownTopic, int maxIncomingMqttRequests, boolean backpressureEnabled, int backpressureIncomingMqttRequestsUpperThreshold, int backpressureIncomingMqttRequestsLowerThreshold, String replyToTopic, MessageRouter messageRouter, MessageProcessedHandler messageProcessedHandler, MqttClientFactory mqttClientFactory, String channelId, MqttTopicPrefixProvider mqttTopicPrefixProvider, RawMessagingPreprocessor rawMessagingPreprocessor, Set<JoynrMessageProcessor> messageProcessors, JoynrStatusMetricsReceiver joynrStatusMetricsReceiver, String ownGbid, RoutingTable routingTable)
-
-
Method Detail
-
subscribe
protected void subscribe()
- Overrides:
subscribein classSharedSubscriptionsMqttMessagingSkeleton
-
subscribeToSharedTopic
public void subscribeToSharedTopic()
- Overrides:
subscribeToSharedTopicin classSharedSubscriptionsMqttMessagingSkeleton
-
-