public class CommunityProfileOutTopicPublisher extends Object
| Constructor and Description |
|---|
CommunityProfileOutTopicPublisher(CommunityProfileOutTopicServerConnector outTopicServerConnector,
String outTopicName,
AuditLog auditLog)
Constructor for the publisher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Shutdown the publishing process.
|
void |
sendKarmaPointPlateauEvent(ElementStub profileElementStub,
String contributingUserId,
long pointsTotal,
long plateau)
Send an event that indicates that a person has achieved a karma point plateau.
|
void |
sentEntityEvent(CommunityProfileOutboundEventType eventType,
String elementGUID,
String elementTypeName,
String classificationName,
ElementStub elementStub)
Send an event that relates to an entity.
|
void |
sentRelationshipEvent(CommunityProfileOutboundEventType eventType,
String relationshipGUID,
String relationshipTypeName,
ElementStub relationshipElementStub,
ElementStub endOneElementStub,
ElementStub endTwoElementStub)
Send an event that relates to a relationship.
|
public CommunityProfileOutTopicPublisher(CommunityProfileOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog auditLog)
outTopicServerConnector - connector to the out topicoutTopicName - name of the out topicauditLog - logging destination if anything goes wrong.public void sentEntityEvent(CommunityProfileOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, ElementStub elementStub)
eventType - type of change to the entityelementGUID - unique identifier for the entityelementTypeName - type of entityclassificationName - if a classification has changed this identifies which classificationelementStub - encoded header of the entitypublic void sentRelationshipEvent(CommunityProfileOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, ElementStub relationshipElementStub, ElementStub endOneElementStub, ElementStub endTwoElementStub)
eventType - type of change to the relationshiprelationshipGUID - unique identifier for the relationshiprelationshipTypeName - type of relationshiprelationshipElementStub - encoded header of the relationshipendTwoElementStub - encoded header of the entity at end 1 of the relationshipendTwoElementStub - encoded header of the entity at end 2 of the relationshippublic void sendKarmaPointPlateauEvent(ElementStub profileElementStub, String contributingUserId, long pointsTotal, long plateau)
profileElementStub - profile of personcontributingUserId - the userId that took them to the plateaupointsTotal - the number of points that the person has achievedplateau - the plateau achievedpublic void disconnect()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.