Class SyncLocalOccupantsAndSendJoinPresenceTask
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.SyncLocalOccupantsAndSendJoinPresenceTask
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Runnable
,ClusterTask<Void>
public class SyncLocalOccupantsAndSendJoinPresenceTask extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyncLocalOccupantsAndSendJoinPresenceTask()
SyncLocalOccupantsAndSendJoinPresenceTask(String subdomain, Set<OccupantManager.Occupant> occupants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<OccupantManager.Occupant>
getOccupants()
NodeID
getOriginator()
Void
getResult()
void
readExternal(ObjectInput in)
void
run()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
SyncLocalOccupantsAndSendJoinPresenceTask
public SyncLocalOccupantsAndSendJoinPresenceTask()
-
SyncLocalOccupantsAndSendJoinPresenceTask
public SyncLocalOccupantsAndSendJoinPresenceTask(@Nonnull String subdomain, @Nonnull Set<OccupantManager.Occupant> occupants)
-
-
Method Detail
-
getOccupants
public Set<OccupantManager.Occupant> getOccupants()
-
getOriginator
public NodeID getOriginator()
-
getResult
public Void getResult()
- Specified by:
getResult
in interfaceClusterTask<Void>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-