Package tigase.pubsub.cluster
Class NotificationBroadcasterClustered
- java.lang.Object
-
- tigase.pubsub.NotificationBroadcaster
-
- tigase.pubsub.cluster.NotificationBroadcasterClustered
-
@Bean(name="notificationBroadcaster", parent=PubSubComponentClustered.class, active=true) public class NotificationBroadcasterClustered extends tigase.pubsub.NotificationBroadcaster
-
-
Constructor Summary
Constructors Constructor Description NotificationBroadcasterClustered()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcastNotification(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, java.lang.String nodeName, tigase.xml.Element message)voidbroadcastNotificationLocally(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, java.lang.String nodeName, tigase.xml.Element message)protected booleanshouldBroadcast(tigase.xmpp.jid.JID jid)Method checks if notifications should be sent on this node for passed JID
-
-
-
Method Detail
-
broadcastNotification
public void broadcastNotification(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, java.lang.String nodeName, tigase.xml.Element message) throws tigase.component.exceptions.RepositoryException- Overrides:
broadcastNotificationin classtigase.pubsub.NotificationBroadcaster- Throws:
tigase.component.exceptions.RepositoryException
-
broadcastNotificationLocally
public void broadcastNotificationLocally(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, java.lang.String nodeName, tigase.xml.Element message) throws tigase.component.exceptions.RepositoryException- Throws:
tigase.component.exceptions.RepositoryException
-
shouldBroadcast
protected boolean shouldBroadcast(tigase.xmpp.jid.JID jid)
Method checks if notifications should be sent on this node for passed JID- Overrides:
shouldBroadcastin classtigase.pubsub.NotificationBroadcaster- Parameters:
jid-- Returns:
-
-