Enum ReplicationSyncFileMessage.FileType
- java.lang.Object
-
- java.lang.Enum<ReplicationSyncFileMessage.FileType>
-
- org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ReplicationSyncFileMessage.FileType
-
- All Implemented Interfaces:
Serializable,Comparable<ReplicationSyncFileMessage.FileType>
- Enclosing class:
- ReplicationSyncFileMessage
public static enum ReplicationSyncFileMessage.FileType extends Enum<ReplicationSyncFileMessage.FileType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOURNALLARGE_MESSAGEPAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicationSyncFileMessage.FileTypegetFileType(byte readByte)static ReplicationSyncFileMessage.FileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ReplicationSyncFileMessage.FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOURNAL
public static final ReplicationSyncFileMessage.FileType JOURNAL
-
PAGE
public static final ReplicationSyncFileMessage.FileType PAGE
-
LARGE_MESSAGE
public static final ReplicationSyncFileMessage.FileType LARGE_MESSAGE
-
-
Method Detail
-
values
public static ReplicationSyncFileMessage.FileType[] 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 (ReplicationSyncFileMessage.FileType c : ReplicationSyncFileMessage.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReplicationSyncFileMessage.FileType 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
-
getFileType
public static ReplicationSyncFileMessage.FileType getFileType(byte readByte)
- Parameters:
readByte-- Returns:
ReplicationSyncFileMessage.FileTypecorresponding to the byte code.
-
-