HubPublisherTransaction

public class HubPublisherTransaction implements java.io.Serializable

Stores the details of the transaction in which the publisher notifies the hub about an update in a topic

Constructors

HubPublisherTransaction

public HubPublisherTransaction()

Creates a new instance of HubPublisherTransaction, with all fields set to null.

HubPublisherTransaction

public HubPublisherTransaction(Integer hubTopicId, Integer contentId, DateTime notificationTime)

Creates a new instance of HubPublisherTransaction, with all fields set to the values specified in the parameters.

Parameters:
  • hubTopicId – the id of topic
  • contentId – the id of content
  • notificationTime – date/time of the notification

Methods

getContentId

public Integer getContentId()

Gets the content id.

Returns:the content id

getHubTopicId

public Integer getHubTopicId()

Gets the topic id.

Returns:the topic id

getNotificationTime

public DateTime getNotificationTime()

Gets date and time of the notification about update.

Returns:date/time of topic update

setContentId

public void setContentId(Integer contentId)

Sets the content id.

Parameters:
  • contentId – content id to be set

setHubTopicId

public void setHubTopicId(Integer hubTopicId)

Sets the topic id.

Parameters:
  • hubTopicId – the topic id to be set

setNotificationTime

public void setNotificationTime(DateTime notificationTime)

Sets date and time of the notification about update.

Parameters:
  • notificationTime – date/time to be set