public static enum EMessage.MessageType extends Enum<EMessage.MessageType>
| Enum Constant and Description |
|---|
NOTIFICATION
A notification is an event with an associated
subject.
|
REPLY
A reply contains a subject, request identifier,
reply status and optional reason.
|
REQUEST
A request contains a subject and request identifier
and is routed by subject.
|
SYSTEM
eBus system message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatching(Class mc)
Returns
true if mc is not null
and is assignable from this message type. |
Class<? extends EMessage> |
messageClass()
Returns the associated message class.
|
static EMessage.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMessage.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMessage.MessageType NOTIFICATION
public static final EMessage.MessageType REQUEST
public static final EMessage.MessageType REPLY
public static final EMessage.MessageType SYSTEM
public static EMessage.MessageType[] values()
for (EMessage.MessageType c : EMessage.MessageType.values()) System.out.println(c);
public static EMessage.MessageType 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 Class<? extends EMessage> messageClass()
public boolean isMatching(Class mc)
true if mc is not null
and is assignable from this message type.mc - check if this message class matches this
type.true if mc matches this
message type.Copyright © 2019. All rights reserved.