Class TopicOwnerCache


  • @Component
    public class TopicOwnerCache
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicOwnerCache​(pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository, GroupService groupService, int refreshRateInSeconds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<pl.allegro.tech.hermes.api.TopicName> get​(pl.allegro.tech.hermes.api.OwnerId ownerId)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TopicOwnerCache

        public TopicOwnerCache​(pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository,
                               GroupService groupService,
                               @Value("${topicOwnerCache.refreshRateInSeconds}")
                               int refreshRateInSeconds)
    • Method Detail

      • stop

        @PreDestroy
        public void stop()
      • get

        public java.util.Collection<pl.allegro.tech.hermes.api.TopicName> get​(pl.allegro.tech.hermes.api.OwnerId ownerId)