Class UpdatePresence
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<Void>
-
- org.jivesoftware.openfire.muc.cluster.UpdatePresence
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Runnable
,ClusterTask<Void>
public class UpdatePresence extends MUCRoomTask<Void>
Task that updates the presence of an occupant in a room. Each time an occupant changes his presence in the room the other cluster nodes will need to get the presence updated too for the occupant.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdatePresence()
UpdatePresence(LocalMUCRoom room, org.xmpp.packet.Presence presence, String nickname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNickname()
org.xmpp.packet.Presence
getPresence()
Void
getResult()
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
-
UpdatePresence
public UpdatePresence()
-
UpdatePresence
public UpdatePresence(LocalMUCRoom room, org.xmpp.packet.Presence presence, String nickname)
-
-
Method Detail
-
getPresence
public org.xmpp.packet.Presence getPresence()
-
getNickname
public String getNickname()
-
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
-
-