Class BroadcastMessageRequest
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.MUCRoomTask<Void>
-
- org.jivesoftware.openfire.muc.cluster.BroadcastMessageRequest
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Runnable
,ClusterTask<Void>
public class BroadcastMessageRequest extends MUCRoomTask<Void>
Task that broadcasts a message to local room occupants. When a room occupant sends a message to the room each cluster node will execute this task and broadcast the message to its local room occupants.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BroadcastMessageRequest()
BroadcastMessageRequest(LocalMUCRoom room, org.xmpp.packet.Message message, int occupants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xmpp.packet.Message
getMessage()
int
getOccupants()
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
-
BroadcastMessageRequest
public BroadcastMessageRequest()
-
BroadcastMessageRequest
public BroadcastMessageRequest(LocalMUCRoom room, org.xmpp.packet.Message message, int occupants)
-
-
Method Detail
-
getMessage
public org.xmpp.packet.Message getMessage()
-
getOccupants
public int getOccupants()
-
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
-
-