Enum ChannelImpl.CHANNEL_ID
- java.lang.Object
-
- java.lang.Enum<ChannelImpl.CHANNEL_ID>
-
- org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.CHANNEL_ID
-
- All Implemented Interfaces:
Serializable,Comparable<ChannelImpl.CHANNEL_ID>
- Enclosing class:
- ChannelImpl
public static enum ChannelImpl.CHANNEL_ID extends Enum<ChannelImpl.CHANNEL_ID>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLUSTERcluster used for controlling nodes in a cluster remotelyFEDERATIONPINGUsed for core protocol management.REPLICATIONReplication, i.e.SESSIONSession creation and attachment.USERChannels [0-9] are reserved for the system, user channels must be greater than that.
-
Field Summary
Fields Modifier and Type Field Description longid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringidToString(long code)static ChannelImpl.CHANNEL_IDvalueOf(String name)Returns the enum constant of this type with the specified name.static ChannelImpl.CHANNEL_ID[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PING
public static final ChannelImpl.CHANNEL_ID PING
Used for core protocol management.
-
SESSION
public static final ChannelImpl.CHANNEL_ID SESSION
Session creation and attachment.
-
REPLICATION
public static final ChannelImpl.CHANNEL_ID REPLICATION
Replication, i.e. for backups that do not share the journal.
-
CLUSTER
public static final ChannelImpl.CHANNEL_ID CLUSTER
cluster used for controlling nodes in a cluster remotely
-
FEDERATION
public static final ChannelImpl.CHANNEL_ID FEDERATION
-
USER
public static final ChannelImpl.CHANNEL_ID USER
Channels [0-9] are reserved for the system, user channels must be greater than that.
-
-
Method Detail
-
values
public static ChannelImpl.CHANNEL_ID[] 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 (ChannelImpl.CHANNEL_ID c : ChannelImpl.CHANNEL_ID.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChannelImpl.CHANNEL_ID 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
-
idToString
protected static String idToString(long code)
-
-