Class ViewerMessage

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

@Entity public class ViewerMessage extends Object
  • Field Details Link icon

  • Constructor Details Link icon

    • ViewerMessage Link icon

      public ViewerMessage()
    • ViewerMessage Link icon

      public ViewerMessage(String taskName)
  • Method Details Link icon

    • getId Link icon

      public Long getId()
    • setId Link icon

      public void setId(Long id)
    • getTaskName Link icon

      public String getTaskName()
    • setTaskName Link icon

      public void setTaskName(String taskName)
    • getMessageId Link icon

      public String getMessageId()
    • setMessageId Link icon

      public void setMessageId(String messageId)
    • getProperties Link icon

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

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

      public MessageStatus getMessageStatus()
    • setMessageStatus Link icon

      public void setMessageStatus(MessageStatus messageStatus)
    • getRetryCount Link icon

      public int getRetryCount()
    • setRetryCount Link icon

      public void setRetryCount(int retryCount)
    • setLastUpdateTime Link icon

      public void setLastUpdateTime(LocalDateTime lastUpdateTime)
    • getLastUpdateTime Link icon

      public LocalDateTime getLastUpdateTime()
    • getQueue Link icon

      public String getQueue()
    • setQueue Link icon

      public void setQueue(String queue)
    • getDelay Link icon

      public long getDelay()
    • setDelay Link icon

      public void setDelay(long delay)
    • isProcessing Link icon

      public boolean isProcessing()
    • parseJSON Link icon

      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 Link icon

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

      public int getMaxRetries()
    • setMaxRetries Link icon

      public void setMaxRetries(int maxRetries)
    • setDoNotRetry Link icon

      public void setDoNotRetry()
      Call this method to set the max number of allowed retries to the number of retries already done, effectively preventing any further retries. This is useful if the ticket runs into an error which it cannot reasonably recover from, so further retries are futile
    • shouldRetry Link icon

      public boolean shouldRetry()