Class MessageUnreadEntity

All Implemented Interfaces:
Serializable

@Entity public class MessageUnreadEntity extends AbstractMessageEntity
存储未读消息,减少message表查询压力 缓存每个用户该接收的消息,自己发送的消息自己不缓存 收到客户端的回执receipt后,删除该条缓存记录 客户端拉取之后,从表中删除该条记录
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • thread

      private ThreadEntity thread
      Associated conversation thread containing this message Many-to-one relationship: multiple messages can belong to one thread
  • Constructor Details

    • MessageUnreadEntity

      public MessageUnreadEntity()
  • Method Details

    • getUserProtobuf

      public UserProtobuf getUserProtobuf()
    • isFromRobot

      public Boolean isFromRobot()
    • isFromVisitor

      public Boolean isFromVisitor()
    • isFromUser

      public Boolean isFromUser()
    • isFromMember

      public Boolean isFromMember()
    • isFromSystem

      public Boolean isFromSystem()
    • isFromAgent

      public Boolean isFromAgent()
    • toString

      public String toString()
      重写toString方法避免循环引用
      Overrides:
      toString in class Object