Package io.goobi.viewer.controller.mq
Class ViewerMessage
java.lang.Object
io.goobi.viewer.controller.mq.ViewerMessage
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getDelay()
getId()
int
getQueue()
int
boolean
static ViewerMessage
void
setDelay
(long delay) void
Call this method to set the max number of allowed retries to the number of retries already done, effectively preventing any further retries.void
void
setLastUpdateTime
(LocalDateTime lastUpdateTime) void
setMaxRetries
(int maxRetries) void
setMessageId
(String messageId) void
setMessageStatus
(MessageStatus messageStatus) void
setProperties
(Map<String, String> properties) void
void
setRetryCount
(int retryCount) void
setTaskName
(String taskName) boolean
toString()
-
Field Details
-
MESSAGE_PROPERTY_ERROR
- See Also:
-
MESSAGE_PROPERTY_INFO
- See Also:
-
-
Constructor Details
-
ViewerMessage
public ViewerMessage() -
ViewerMessage
-
-
Method Details
-
getId
-
setId
-
getTaskName
-
setTaskName
-
getMessageId
-
setMessageId
-
getProperties
-
setProperties
-
getMessageStatus
-
setMessageStatus
-
getRetryCount
public int getRetryCount() -
setRetryCount
public void setRetryCount(int retryCount) -
setLastUpdateTime
-
getLastUpdateTime
-
getQueue
-
setQueue
-
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
-
getMaxRetries
public int getMaxRetries() -
setMaxRetries
public void setMaxRetries(int maxRetries) -
setDoNotRetry
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
public boolean shouldRetry()
-