com.eurotech.framework.core.data
Class DataMessage.Builder
java.lang.Object
com.eurotech.framework.core.data.DataMessage.Builder
- Enclosing class:
- DataMessage
public static class DataMessage.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataMessage.Builder
public DataMessage.Builder(int id)
withTopic
public DataMessage.Builder withTopic(String topic)
withQos
public DataMessage.Builder withQos(int qos)
withRetain
public DataMessage.Builder withRetain(boolean retain)
withCreatedOn
public DataMessage.Builder withCreatedOn(Date createdOn)
withPublishedOn
public DataMessage.Builder withPublishedOn(Date publishedOn)
withPublishedMessageId
public DataMessage.Builder withPublishedMessageId(int publishedMessageId)
withConfirmedOn
public DataMessage.Builder withConfirmedOn(Date confirmedOn)
withPayload
public DataMessage.Builder withPayload(byte[] payload)
withPriority
public DataMessage.Builder withPriority(int priority)
withSessionId
public DataMessage.Builder withSessionId(String sessionId)
withDroppedOn
public DataMessage.Builder withDroppedOn(Date droppedOn)
getId
public int getId()
getTopic
public String getTopic()
getQos
public int getQos()
getRetain
public boolean getRetain()
getCreatedOn
public Date getCreatedOn()
getPublishedOn
public Date getPublishedOn()
getPublishedMessageId
public int getPublishedMessageId()
getConfirmedOn
public Date getConfirmedOn()
getPayload
public byte[] getPayload()
getPriority
public int getPriority()
getSessionId
public String getSessionId()
getDroppedOn
public Date getDroppedOn()
build
public DataMessage build()
Copyright © 2013. All Rights Reserved.