|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EventMessageType> org.axonframework.eventhandling.io.EventMessageType
public enum EventMessageType
Enumeration of supported Message Types by the EventMessageWriter
and EventMessageReader
.
Enum Constant Summary | |
---|---|
DOMAIN_EVENT_MESSAGE
Represents a DomainEventMessage |
|
EVENT_MESSAGE
Represents an EventMessage which is not a DomainEventMessage |
Method Summary | |
---|---|
static EventMessageType |
forMessage(EventMessage message)
Returns the most specific EventMessageType for the given message . |
static EventMessageType |
fromTypeByte(byte typeByte)
Returns the EventMessageType identified by the given typeByte . |
byte |
getTypeByte()
Returns the Type Byte for this EventMessageType. |
static EventMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventMessageType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EventMessageType DOMAIN_EVENT_MESSAGE
public static final EventMessageType EVENT_MESSAGE
Method Detail |
---|
public static EventMessageType[] values()
for (EventMessageType c : EventMessageType.values()) System.out.println(c);
public static EventMessageType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static EventMessageType forMessage(EventMessage message)
message
.
message
- The message to resolve the type for
message
public static EventMessageType fromTypeByte(byte typeByte)
typeByte
.
typeByte
- The byte representing the EventMessageType
null
if unknownpublic byte getTypeByte()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |