Class SyncLocalOccupantsAndSendJoinPresenceTask
java.lang.Object
org.jivesoftware.openfire.muc.cluster.SyncLocalOccupantsAndSendJoinPresenceTask
- All Implemented Interfaces:
Externalizable
,Serializable
,Runnable
,ClusterTask<Void>
Task that is used by a cluster node to inform other cluster nodes of its local occupants. This is intended to be used
by a node that is joining a cluster (to send its local occupants to all other nodes), and by nodes in an existing
cluster that detect a new node joining (to send their local occupants to the joining node).
- Author:
- Guus der Kinderen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSyncLocalOccupantsAndSendJoinPresenceTask
(String subdomain, Set<OccupantManager.Occupant> occupants) -
Method Summary
-
Constructor Details
-
SyncLocalOccupantsAndSendJoinPresenceTask
public SyncLocalOccupantsAndSendJoinPresenceTask() -
SyncLocalOccupantsAndSendJoinPresenceTask
public SyncLocalOccupantsAndSendJoinPresenceTask(@Nonnull String subdomain, @Nonnull Set<OccupantManager.Occupant> occupants)
-
-
Method Details
-
getOccupants
-
getOriginator
-
getResult
- Specified by:
getResult
in interfaceClusterTask<Void>
-
run
public void run() -
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-