B - the actual inherited builder for the return types.public abstract static class Sim0MQReply.Builder<B extends Sim0MQMessage.Builder<B>> extends Sim0MQMessage.Builder<B>
Copyright (c) 2016-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
| Modifier and Type | Field and Description |
|---|---|
protected long |
replyToId
The unique message id (Frame 5) of the sender for which this is the reply.
|
messageId, messageStatus, messageTypeId, receiverId, senderId, simulationRunId| Constructor and Description |
|---|
Builder()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Sim0MQReply |
build()
Build the object.
|
Sim0MQReply.Builder<B> |
setReplyTo(Sim0MQMessage message) |
Sim0MQReply.Builder<B> |
setReplyToId(long newReplyToId) |
setMessageId, setMessageStatus, setMessageTypeId, setReceiverId, setSenderId, setSimulationRunIdprotected long replyToId
public final Sim0MQReply.Builder<B> setReplyToId(long newReplyToId)
newReplyToId - set replyToIdpublic final Sim0MQReply.Builder<B> setReplyTo(Sim0MQMessage message)
message - set replyToId and receiver based on the message to which this is a replypublic abstract Sim0MQReply build() throws Sim0MQException, NullPointerException
build in class Sim0MQMessage.Builder<B extends Sim0MQMessage.Builder<B>>Sim0MQException - on unknown data typeNullPointerException - when one of the parameters is nullCopyright © 2016–2019 Delft University of Technology. All rights reserved.