com.eurotech.framework.core.data
Class DataMessage.Builder

java.lang.Object
  extended by com.eurotech.framework.core.data.DataMessage.Builder
Enclosing class:
DataMessage

public static class DataMessage.Builder
extends Object


Constructor Summary
DataMessage.Builder(int id)
           
 
Method Summary
 DataMessage build()
           
 Date getConfirmedOn()
           
 Date getCreatedOn()
           
 Date getDroppedOn()
           
 int getId()
           
 byte[] getPayload()
           
 int getPriority()
           
 int getPublishedMessageId()
           
 Date getPublishedOn()
           
 int getQos()
           
 boolean getRetain()
           
 String getSessionId()
           
 String getTopic()
           
 DataMessage.Builder withConfirmedOn(Date confirmedOn)
           
 DataMessage.Builder withCreatedOn(Date createdOn)
           
 DataMessage.Builder withDroppedOn(Date droppedOn)
           
 DataMessage.Builder withPayload(byte[] payload)
           
 DataMessage.Builder withPriority(int priority)
           
 DataMessage.Builder withPublishedMessageId(int publishedMessageId)
           
 DataMessage.Builder withPublishedOn(Date publishedOn)
           
 DataMessage.Builder withQos(int qos)
           
 DataMessage.Builder withRetain(boolean retain)
           
 DataMessage.Builder withSessionId(String sessionId)
           
 DataMessage.Builder withTopic(String topic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMessage.Builder

public DataMessage.Builder(int id)
Method Detail

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.