public abstract class AbstractKeyMessage extends ESystemMessage implements Serializable
Class.forName throwing
ClassNotFoundException. It is entirely reasonable for
connected eBus applications not to use exactly the same
message set. Therefore, if an eBus application receives a
message class name for a class it doesn't know about, that
inbound message will successfully deserialize but is ignored.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractKeyMessage.Builder<M extends AbstractKeyMessage,B extends AbstractKeyMessage.Builder<M,?>>
Base class for all
AbstractKeyMessage builders. |
EMessage.MessageType| Modifier and Type | Field and Description |
|---|---|
String |
messageClass
The message key class name.
|
String |
messageSubject
The message key subject.
|
SYSTEM_SUBJECTMAX_FIELDS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractKeyMessage(AbstractKeyMessage.Builder<?,?> builder)
Creates a new abstract key message from the configured
message builder.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns
true if o is a
non-null AdMessage instance with ad status,
message class, and message type equal to
this AdMessage instance and false
otherwise. |
int |
hashCode()
Returns the advertisement message hash code.
|
EMessageKey |
messageKey()
Returns the message key based on the message class name
and subject.
|
String |
toString()
Returns a human-readable text version of this message.
|
isApplicationMessage, isSystemMessage, key, messageTypepublic final String messageClass
Class instance because the far-end
deserialization will fail if the Class is
unknown.public final String messageSubject
protected AbstractKeyMessage(AbstractKeyMessage.Builder<?,?> builder)
builder - message builder.public boolean equals(Object o)
true if o is a
non-null AdMessage instance with ad status,
message class, and message type equal to
this AdMessage instance and false
otherwise.public int hashCode()
public String toString()
public final EMessageKey messageKey() throws UnknownMessageException
UnknownMessageException - if messageClass is an unknown class name.Copyright © 2019. All rights reserved.