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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastNotification(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xml.Element message) voidbroadcastNotificationLocally(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, 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 JIDMethods inherited from class tigase.pubsub.NotificationBroadcaster
prepareSender
-
Constructor Details
-
NotificationBroadcasterClustered
public NotificationBroadcasterClustered()
-
-
Method Details
-
broadcastNotification
public void broadcastNotification(tigase.pubsub.utils.executors.Executor.Priority priority, tigase.xmpp.jid.BareJID serviceJID, 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, 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:
-