Class ChangeNickname
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<Void>
-
- org.jivesoftware.openfire.muc.cluster.ChangeNickname
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Void>
public class ChangeNickname extends MUCRoomTask<Void>
Task that changes the nickname of an existing room occupant in the cluster node. When a room occupant changes his nickname the other cluster nodes, that hold aRemoteMUCRolewill need to update their local information with the new nickname.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeNickname()ChangeNickname(LocalMUCRoom room, String oldNick, String newNick, org.xmpp.packet.Presence presence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewNick()StringgetOldNick()org.xmpp.packet.PresencegetPresence()VoidgetResult()voidreadExternal(ObjectInput in)voidrun()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.jivesoftware.openfire.muc.cluster.MUCRoomTask
execute, getRoom, isOriginator, setOriginator
-
-
-
-
Constructor Detail
-
ChangeNickname
public ChangeNickname()
-
ChangeNickname
public ChangeNickname(LocalMUCRoom room, String oldNick, String newNick, org.xmpp.packet.Presence presence)
-
-
Method Detail
-
getOldNick
public String getOldNick()
-
getNewNick
public String getNewNick()
-
getPresence
public org.xmpp.packet.Presence getPresence()
-
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
-
-