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 aRemoteMUCRole
will 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 String
getNewNick()
String
getOldNick()
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
-
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:
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
-
-