Class GenerateCollectionArchiveMessageHandler

java.lang.Object
io.goobi.viewer.model.job.mq.GenerateCollectionArchiveMessageHandler
All Implemented Interfaces:
MessageHandler<MessageStatus>

public class GenerateCollectionArchiveMessageHandler extends Object implements MessageHandler<MessageStatus>
Worker that (re)generates the BagIt archive for a single collection. The collection is identified by the field and collection message properties set by GenerateCollectionArchivesMessageHandler. Generation is skipped when the collection is unchanged since the last run, empty, or has no enabled content types (see CollectionArchiveService.generateIfChanged(String, String, CollectionArchiveConfig)).

Transient Solr/IO failures return MessageStatus.ERROR so the message queue retries the job.