Interface RemotePacketRouter

All Known Implementing Classes:
ClusterPacketRouter

public interface RemotePacketRouter
A RemotePacketRouter is responsible for delivering packets to entities hosted in remote nodes of the cluster.
Author:
Gaston Dombiak
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    broadcastPacket(org.xmpp.packet.Message packet)
    Brodcasts the specified message to all local client sessions of each cluster node.
    boolean
    routePacket(byte[] nodeID, org.xmpp.packet.JID recipient, org.xmpp.packet.Packet packet)
    Routes packet to specified recipient hosted in the specified node.
  • Method Details

    • routePacket

      boolean routePacket(byte[] nodeID, org.xmpp.packet.JID recipient, org.xmpp.packet.Packet packet)
      Routes packet to specified recipient hosted in the specified node.
      Parameters:
      nodeID - the ID of the node hosting the recipient.
      recipient - the target entity that will get the packet.
      packet - the packet to send.
      Returns:
      true if the remote node was found.
    • broadcastPacket

      void broadcastPacket(org.xmpp.packet.Message packet)
      Brodcasts the specified message to all local client sessions of each cluster node. The current cluster node is not going to be included.
      Parameters:
      packet - the message to broadcast.