Package net.sf.eBusx.util
Class TimerReply.Builder
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject.Builder<M>
-
- net.sf.eBus.messages.EMessage.Builder<M,B>
-
- net.sf.eBus.messages.EReplyMessage.Builder<TimerReply,TimerReply.Builder>
-
- net.sf.eBusx.util.TimerReply.Builder
-
- Enclosing class:
- TimerReply
public static final class TimerReply.Builder extends EReplyMessage.Builder<TimerReply,TimerReply.Builder>
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.messages.EReplyMessage.Builder
mReplyReason, mReplyStatus
-
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimerReply
buildImpl()
Returns eBus message instance built from the configured properties.TimerReply.Builder
sequenceNumber(int n)
Sets the sequence number.TimerReply.Builder
timerName(java.lang.String name)
Sets the timer name.protected Validator
validate(Validator problems)
Checks if reply status is set.-
Methods inherited from class net.sf.eBus.messages.EReplyMessage.Builder
replyReason, replyStatus
-
Methods inherited from class net.sf.eBus.messages.EMessage.Builder
copy, subject, timestamp, timestamp
-
Methods inherited from class net.sf.eBus.messages.EMessageObject.Builder
build
-
-
-
-
Method Detail
-
buildImpl
protected TimerReply buildImpl()
Description copied from class:EMessageObject.Builder
Returns eBus message instance built from the configured properties. Note: the builder configuration wasvalidated
prior to calling this method. The message object may now be constructed.- Specified by:
buildImpl
in classEMessageObject.Builder<TimerReply>
- Returns:
- target message class instance.
-
validate
protected Validator validate(Validator problems)
Description copied from class:EReplyMessage.Builder
Checks if reply status is set. Note that the reply reason is not required to be set; it may benull
or an empty string.- Overrides:
validate
in classEReplyMessage.Builder<TimerReply,TimerReply.Builder>
- Parameters:
problems
- used to check field validity and collect discovered invalid fields.- Returns:
problems
to allow for method chaining.- See Also:
Validator
-
timerName
public TimerReply.Builder timerName(java.lang.String name)
Sets the timer name.- Parameters:
name
- timer name.- Returns:
this TimerReply
builder.- Throws:
java.lang.IllegalArgumentException
- ifname
isnull
or empty.
-
sequenceNumber
public TimerReply.Builder sequenceNumber(int n)
Sets the sequence number.- Parameters:
n
- sequence number.- Returns:
this TimerReply
builder.- Throws:
java.lang.IllegalArgumentException
- ifn
is < zero.
-
-