diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java')
-rw-r--r-- | openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java index ee802640c4..4ce87427aa 100644 --- a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java +++ b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationReceiver.java @@ -24,46 +24,21 @@ import org.openecomp.sdc.notification.types.NotificationsStatusDto; import java.util.UUID; import java.util.function.Consumer; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.Setter; - +@Getter +@Setter +@AllArgsConstructor public class NotificationReceiver { - public String ownerId = null; - public Consumer<NotificationsStatusDto> notesProcessor = null; - public UUID lastEventId = null; - - NotificationReceiver(String ownerId, UUID lastEventId, Consumer<NotificationsStatusDto> notesProcessor) { - this.ownerId = ownerId; - this.lastEventId = lastEventId; - this.notesProcessor = notesProcessor; - } + private String ownerId = null; + private UUID lastEventId = null; + private Consumer<NotificationsStatusDto> notesProcessor = null; NotificationReceiver(String ownerId, Consumer<NotificationsStatusDto> notesProcessor) { this(ownerId, null, notesProcessor); } - - public void setOwnerId(String ownerId) { - this.ownerId = ownerId; - } - - public String getOwnerId() { - return this.ownerId; - } - - public void setNotesProcessor(Consumer<NotificationsStatusDto> notesProcessor) { - this.notesProcessor = notesProcessor; - } - - public Consumer<NotificationsStatusDto> getNotesProcessor() { - return this.notesProcessor; - } - - public void setLastEventId(UUID lastEventId) { - this.lastEventId = lastEventId; - } - - public UUID getlastEventId() { - return this.lastEventId; - } } |