Enum FMUCMode
- java.lang.Object
-
- java.lang.Enum<FMUCMode>
-
- org.jivesoftware.openfire.muc.spi.FMUCMode
-
- All Implemented Interfaces:
Serializable
,Comparable<FMUCMode>
public enum FMUCMode extends Enum<FMUCMode>
Configuration mode for Federated Multi-User Chat.- Author:
- Guus der kinderen, guus@goodbytes.nl
- See Also:
-
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MasterMaster
Two FMUC nodes operating such that both will continue to work when a network fails between them.MasterSlave
Two FMUC nodes operating where one, the master, will continue working during a network outage while the slave will cease to work while it cannot communicate with the master.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FMUCMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static FMUCMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
-
Enum Constant Detail
-
MasterMaster
public static final FMUCMode MasterMaster
Two FMUC nodes operating such that both will continue to work when a network fails between them. This mode has the properties of reduced network traffic and of not having a guarantee of consistent message ordering between nodes.
-
MasterSlave
public static final FMUCMode MasterSlave
Two FMUC nodes operating where one, the master, will continue working during a network outage while the slave will cease to work while it cannot communicate with the master. This mode has increased network traffic and a consistent message delivery order across both nodes.
-
-
Method Detail
-
values
public static FMUCMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FMUCMode c : FMUCMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FMUCMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-