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.Affiliation
getAffiliation()
String
getNickname()
org.xmpp.packet.Presence
getPresence()
Void
getResult()
MUCRole.Role
getRole()
void
readExternal(ObjectInput in)
void
run()
void
writeExternal(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:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classMUCRoomTask<Void>
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classMUCRoomTask<Void>
- Throws:
IOException
ClassNotFoundException
-
-