public enum EventMessageType extends Enum<EventMessageType>
EventMessageWriter and EventMessageReader.| Enum Constant and Description |
|---|
DOMAIN_EVENT_MESSAGE
Represents a DomainEventMessage
|
EVENT_MESSAGE
Represents an EventMessage which is not a DomainEventMessage
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final EventMessageType DOMAIN_EVENT_MESSAGE
public static final EventMessageType EVENT_MESSAGE
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 nameNullPointerException - if the argument is nullpublic static EventMessageType forMessage(EventMessage message)
message.message - The message to resolve the type formessagepublic static EventMessageType fromTypeByte(byte typeByte)
typeByte.typeByte - The byte representing the EventMessageTypenull if unknownpublic byte getTypeByte()
Copyright © 2010-2014. All Rights Reserved.