Package net.sf.eBus.config
Enum EConfigure.MulticastRole
- java.lang.Object
-
- java.lang.Enum<EConfigure.MulticastRole>
-
- net.sf.eBus.config.EConfigure.MulticastRole
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EConfigure.MulticastRole>
- Enclosing class:
- EConfigure
public static enum EConfigure.MulticastRole extends java.lang.Enum<EConfigure.MulticastRole>
Multicast connections are used to transmit notification messages only. As such a multicast connection is used either to publish notifications to the multicast group or subscribe to notifications from the group. Note that a multicast connection cannot both publish and subscribe.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PUBLISHER
Multicast connection takes eBus notifications targeted for remote applications and posts it to the multicast group.SUBSCRIBER
Multicast connection takes eBus notifications from the multicast group and publishes it to the local eBus.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EConfigure.MulticastRole
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EConfigure.MulticastRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLISHER
public static final EConfigure.MulticastRole PUBLISHER
Multicast connection takes eBus notifications targeted for remote applications and posts it to the multicast group.
-
SUBSCRIBER
public static final EConfigure.MulticastRole SUBSCRIBER
Multicast connection takes eBus notifications from the multicast group and publishes it to the local eBus.
-
-
Method Detail
-
values
public static EConfigure.MulticastRole[] 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 (EConfigure.MulticastRole c : EConfigure.MulticastRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EConfigure.MulticastRole valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-