@EReplyInfo(replyMessageClasses=EReplyMessage.class) public abstract class ERequestMessage extends EMessage implements Serializable
EReplyMessage to be used to reply to any and all
request message classes.
ERequestMessage subclasses must contain a class-level
annotation EReplyInfo. This defines the reply message
classes used to reply to the request message. This annotation
is cumulative. The allowed reply messages include those listed
in the current EReplyInfo annotation and those listed
in the superclass EReplyInfo annotation. Since
EReplyMessage is listed in the ERequestMessage
EReplyInfo annotation, EReplyMessage is a
valid reply to any request.
@EReplyInfo (replyMessageClasses = {OrderReply.class})
public final class OrderRequest
extends ERequestMessage
ENotificationMessage,
EReplyMessage,
EReplyInfo,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
ERequestMessage.Builder<M extends ERequestMessage,B extends ERequestMessage.Builder<M,?>> |
EMessage.MessageTypeMAX_FIELDS| Modifier | Constructor and Description |
|---|---|
protected |
ERequestMessage(ERequestMessage.Builder<?,?> builder)
Creates a new eBus request message based on the given
message builder.
|
protected |
ERequestMessage(String subject)
Creates an eBus request message with the given subject.
|
|
ERequestMessage(String subject,
long timestamp)
Creates a new request message instance for the given
subject and timestamp.
|
protected ERequestMessage(String subject) throws IllegalArgumentException
subject - the request message subject.IllegalArgumentException - if subject is either null or empty.public ERequestMessage(String subject, long timestamp) throws IllegalArgumentException
This constructor is not deprecated since it is
needed by local messages designated by
@ELocalOnly annotation.
subject - the message subject.timestamp - the message timestamp (Java millisecond
epoch time).IllegalArgumentException - if subject is either of null or empty.protected ERequestMessage(ERequestMessage.Builder<?,?> builder)
builder is guaranteed to contain
a valid message configuration at this point.builder - contains the eBus message configuration.Copyright © 2019. All rights reserved.