Class RespondSyncOnlineCmd

  • All Implemented Interfaces:
    java.lang.Comparable<tigase.cluster.api.CommandListener>, tigase.cluster.api.CommandListener

    public class RespondSyncOnlineCmd
    extends TrafficSyncCmdAbstract
    • Method Detail

      • executeCommand

        public void executeCommand​(tigase.xmpp.jid.JID fromNode,
                                   java.util.Set<tigase.xmpp.jid.JID> visitedNodes,
                                   java.util.Map<java.lang.String,​java.lang.String> data,
                                   java.util.Queue<tigase.xml.Element> elements)
                            throws tigase.cluster.api.ClusterCommandException
        Method is responsible for processing response to synchronisation request. For empty responses it simply sets status of the cache to synchronised state. For responses containing data, elements are processed and included into local connections cache subsequently marking it as synchronised.
        fromNode - JID of the originating node from which response came.
        visitedNodes - Set containing JID of all already visited nodes
        data - additional data
        elements - response data, either null for empty set or collection of containing information about Connection IDs (CIDs) of all users JIDs from the given original node.