Class AffiliationTask

java.lang.Object
org.jivesoftware.openfire.pubsub.cluster.NodeTask
org.jivesoftware.openfire.pubsub.cluster.AffiliationTask
All Implemented Interfaces:
Externalizable, Serializable, Runnable, ClusterTask<Void>

public class AffiliationTask extends NodeTask
Updates the affiliation of a particular entity, for a particular pubsub node. Note that this task aims to update in-memory state only: it will not apply affiliation changes to persistent data storage (it is assumed that the cluster node where the task originated takes responsibility for that). As a result, this task might not apply changes if the node that is the subject of this task is currently not loaded in-memory of the cluster node on which this task operates.
See Also:
  • Constructor Details

    • AffiliationTask

      public AffiliationTask()
      This no-argument constructor is provided for serialization purposes. It should generally not be used otherwise.
    • AffiliationTask

      public AffiliationTask(@Nonnull Node node, @Nonnull org.xmpp.packet.JID jid, @Nonnull NodeAffiliate.Affiliation affiliation)
      Constructs a new task that updates the affiliation of a particular entity with a specific pubsub node.
      Parameters:
      node - The pubsub node that this task relates to.
      jid - The address of the entity that has an affiliation with the pubsub node.
      affiliation - The affiliation that the entity has with the pubsub node.
  • Method Details