Class MUCRoomTask<V>
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<V>
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<V>
- Direct Known Subclasses:
AddAffiliation,AddMember,BroadcastMessageRequest,BroadcastPresenceRequest,ChangeNickname,DestroyRoomRequest,OccupantAddedEvent,OccupantLeftEvent,RoomUpdatedEvent,UpdateOccupant,UpdateOccupantRequest,UpdatePresence
public abstract class MUCRoomTask<V> extends Object implements ClusterTask<V>
Task related to a room to be executed in a cluster node. This is a base class to specific room tasks. The base class just keeps track of the room related to the task.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMUCRoomTask()protectedMUCRoomTask(LocalMUCRoom room)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(Runnable runnable)Executes the requested task considering that this JVM may still be joining the cluster.LocalMUCRoomgetRoom()booleanisOriginator()voidreadExternal(ObjectInput in)voidsetOriginator(boolean originator)voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.util.cache.ClusterTask
getResult
-
-
-
-
Constructor Detail
-
MUCRoomTask
protected MUCRoomTask()
-
MUCRoomTask
protected MUCRoomTask(LocalMUCRoom room)
-
-
Method Detail
-
getRoom
public LocalMUCRoom getRoom()
-
execute
protected void execute(Runnable runnable)
Executes the requested task considering that this JVM may still be joining the cluster. This means that events regarding rooms that were not loaded yet will be stored for later processing. Once the JVM is done joining the cluster queued tasks will be processed.- Parameters:
runnable- the task to execute.
-
isOriginator
public boolean isOriginator()
-
setOriginator
public void setOriginator(boolean originator)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-