Class ViewerMessage

java.lang.Object
io.goobi.viewer.controller.mq.ViewerMessage

@Entity public class ViewerMessage extends Object
  • Field Details

  • Constructor Details

    • ViewerMessage

      public ViewerMessage()
    • ViewerMessage

      public ViewerMessage(String taskName)
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getTaskName

      public String getTaskName()
    • setTaskName

      public void setTaskName(String taskName)
    • getMessageId

      public String getMessageId()
    • setMessageId

      public void setMessageId(String messageId)
    • getProperties

      public Map<String,String> getProperties()
    • setProperties

      public void setProperties(Map<String,String> properties)
    • getMessageStatus

      public MessageStatus getMessageStatus()
    • setMessageStatus

      public void setMessageStatus(MessageStatus messageStatus)
    • getRetryCount

      public int getRetryCount()
    • setRetryCount

      public void setRetryCount(int retryCount)
    • setLastUpdateTime

      public void setLastUpdateTime(LocalDateTime lastUpdateTime)
    • getLastUpdateTime

      public LocalDateTime getLastUpdateTime()
    • getQueue

      public String getQueue()
    • setQueue

      public void setQueue(String queue)
    • getDelay

      public long getDelay()
    • setDelay

      public void setDelay(long delay)
    • isProcessing

      public boolean isProcessing()
    • parseJSON

      public static ViewerMessage parseJSON(String json) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.databind.JsonMappingException
      com.fasterxml.jackson.core.JsonProcessingException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMaxRetries

      public int getMaxRetries()
    • setMaxRetries

      public void setMaxRetries(int maxRetries)
    • shouldRetry

      public boolean shouldRetry()