public static final class SCAMPIMessage.Builder
extends java.lang.Object
SCAMPIMessage
instances.Getting a builder instance.
Modifier and Type | Method and Description |
---|---|
SCAMPIMessage.Builder |
appTag(java.lang.String appTag)
Set the AppTag of the built message.
|
SCAMPIMessage |
build()
Builds a message instance.
|
SCAMPIMessage.Builder |
lifetime(long lifetime)
Sets the lifetime of the built message.
|
SCAMPIMessage.Builder |
lifetime(long lifetime,
java.util.concurrent.TimeUnit unit)
Sets the lifetime of the built message.
|
SCAMPIMessage.Builder |
persistent(boolean persistent)
Sets the persistence of the built message
|
public SCAMPIMessage.Builder appTag(java.lang.String appTag)
appTag
- appTag for the messagepublic SCAMPIMessage.Builder lifetime(long lifetime)
lifetime
- lifetime in seconds.public SCAMPIMessage.Builder lifetime(long lifetime, java.util.concurrent.TimeUnit unit)
lifetime
- lifetime of the messageunit
- unit for the lifetimepublic SCAMPIMessage.Builder persistent(boolean persistent)
persistent
- true
for a persistent message,
false
otherwise.public SCAMPIMessage build()