Class RoomInfo
- java.lang.Object
-
- org.jivesoftware.openfire.muc.cluster.RoomInfo
-
- All Implemented Interfaces:
Externalizable,Serializable
public class RoomInfo extends Object implements Externalizable
Representation of a room configuration and its occupants. This information is requested by a cluster node when joining the cluster (requested to the senior member) and also from each cluster node to the new node joining the cluster. Each cluster node (existing and new one) has to merge its local rooms with the new ones.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoomInfo()Do not use this constructor.RoomInfo(LocalMUCRoom room, Collection<MUCRole> occupants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OccupantAddedEvent>getOccupants()LocalMUCRoomgetRoom()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
RoomInfo
public RoomInfo()
Do not use this constructor. Needed for Externalizable interface.
-
RoomInfo
public RoomInfo(LocalMUCRoom room, Collection<MUCRole> occupants)
-
-
Method Detail
-
getRoom
public LocalMUCRoom getRoom()
-
getOccupants
public List<OccupantAddedEvent> getOccupants()
-
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
-
-