Commit 0c146ab2 authored by Ivar Meikas's avatar Ivar Meikas
Browse files

TEIS-1002 Fixed cache queues

parent 88d6c493
...@@ -49,6 +49,11 @@ public class DomainCacheConfig implements DomainCacheList { ...@@ -49,6 +49,11 @@ public class DomainCacheConfig implements DomainCacheList {
classifierItemCacheUpdateService.updated(updatedDTO.getPayload().getId(), updatedDTO.getPayload()); classifierItemCacheUpdateService.updated(updatedDTO.getPayload().getId(), updatedDTO.getPayload());
} }
@RabbitListener(queues = "#{@classifierItemCacheUpdateService.deletedEventsQueueName}")
public void classifierItemDeletedEvent(ClassifierItemCacheUpdateService.ClassifierItemDeletedDTO updatedDTO) {
classifierItemCacheUpdateService.updated(updatedDTO.getPayload().getId(), updatedDTO.getPayload());
}
@RabbitListener(queues = "#{@classifierItemCacheUpdateService.cacheReinitializeQueueName}") @RabbitListener(queues = "#{@classifierItemCacheUpdateService.cacheReinitializeQueueName}")
public void classifierItemReinitializeEvent(ClassifierItemReinitializeDTO reinitializeDTO) { public void classifierItemReinitializeEvent(ClassifierItemReinitializeDTO reinitializeDTO) {
classifierItemCacheUpdateService.reinitialize(); classifierItemCacheUpdateService.reinitialize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment