Class UpdateOccupant
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<Void>
-
- org.jivesoftware.openfire.muc.cluster.UpdateOccupant
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Void>
public class UpdateOccupant extends MUCRoomTask<Void>
Task that updates all information regarding a room occupant. Whenever a room occupant gets his affiliation, role, nickname or presence updated the other cluster nodes will need to reflect these changes.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateOccupant()UpdateOccupant(LocalMUCRoom room, MUCRole role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MUCRole.AffiliationgetAffiliation()StringgetNickname()org.xmpp.packet.PresencegetPresence()VoidgetResult()MUCRole.RolegetRole()voidreadExternal(ObjectInput in)voidrun()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.jivesoftware.openfire.muc.cluster.MUCRoomTask
execute, getRoom, isOriginator, setOriginator
-
-
-
-
Constructor Detail
-
UpdateOccupant
public UpdateOccupant()
-
UpdateOccupant
public UpdateOccupant(LocalMUCRoom room, MUCRole role)
-
-
Method Detail
-
getPresence
public org.xmpp.packet.Presence getPresence()
-
getNickname
public String getNickname()
-
getRole
public MUCRole.Role getRole()
-
getAffiliation
public MUCRole.Affiliation getAffiliation()
-
getResult
public Void getResult()
-
run
public void run()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classMUCRoomTask<Void>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classMUCRoomTask<Void>- Throws:
IOExceptionClassNotFoundException
-
-