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 protected
MUCRoomTask()
protected
MUCRoomTask(LocalMUCRoom room)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(Runnable runnable)
Executes the requested task considering that this JVM may still be joining the cluster.LocalMUCRoom
getRoom()
boolean
isOriginator()
void
readExternal(ObjectInput in)
void
setOriginator(boolean originator)
void
writeExternal(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:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-