Class ChangeNotificationState

java.lang.Object
com.broadleafcommerce.sandbox.domain.tracking.ChangeNotificationState
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationState, Serializable

public class ChangeNotificationState extends Object implements com.broadleafcommerce.common.messaging.notification.domain.NotificationState, Serializable
The Sandbox Microservice's own specific implementation of NotificationState, independent of database provider.
Author:
Jeff Fischer
See Also:
  • Constructor Details

    • ChangeNotificationState

      public ChangeNotificationState()
    • ChangeNotificationState

      public ChangeNotificationState(com.broadleafcommerce.common.messaging.notification.domain.NotificationState notificationState)
    • ChangeNotificationState

      public ChangeNotificationState(Instant changeTimestamp, Instant changeTimestampAck, boolean acked, boolean stopped, int attempts, Instant nextAttempt, String name, String messageType, String messageValue)
    • ChangeNotificationState

      public ChangeNotificationState(Instant changeTimestamp, Instant changeTimestampAck, boolean acked, boolean stopped, int attempts, Instant nextAttempt, String name, String messageType, String messageValue, String id)
  • Method Details

    • getChangeTimestamp

      public Instant getChangeTimestamp()
      Specified by:
      getChangeTimestamp in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getChangeTimestampAck

      public Instant getChangeTimestampAck()
      Specified by:
      getChangeTimestampAck in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • isAcked

      public boolean isAcked()
      Specified by:
      isAcked in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • isStopped

      public boolean isStopped()
      Specified by:
      isStopped in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getAttempts

      public int getAttempts()
      Specified by:
      getAttempts in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getNextAttempt

      public Instant getNextAttempt()
      Specified by:
      getNextAttempt in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getName

      public String getName()
      Specified by:
      getName in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getMessageType

      public String getMessageType()
      Specified by:
      getMessageType in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getMessageValue

      public String getMessageValue()
      Specified by:
      getMessageValue in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • getId

      public String getId()
      Specified by:
      getId in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setChangeTimestamp

      public void setChangeTimestamp(Instant changeTimestamp)
      Specified by:
      setChangeTimestamp in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setChangeTimestampAck

      public void setChangeTimestampAck(Instant changeTimestampAck)
      Specified by:
      setChangeTimestampAck in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setAcked

      public void setAcked(boolean acked)
      Specified by:
      setAcked in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setStopped

      public void setStopped(boolean stopped)
      Specified by:
      setStopped in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setAttempts

      public void setAttempts(int attempts)
      Specified by:
      setAttempts in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setNextAttempt

      public void setNextAttempt(Instant nextAttempt)
      Specified by:
      setNextAttempt in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setName

      public void setName(String name)
      Specified by:
      setName in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setMessageType

      public void setMessageType(String messageType)
      Specified by:
      setMessageType in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setMessageValue

      public void setMessageValue(String messageValue)
      Specified by:
      setMessageValue in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationState
    • setId

      public void setId(String id)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object