Class AbstractGraphIdProvider

    • Field Detail

      • transactionTemplate

        @Autowired
        @Qualifier("transactionTemplate")
        protected org.springframework.transaction.support.TransactionTemplate transactionTemplate
    • Constructor Detail

      • AbstractGraphIdProvider

        public AbstractGraphIdProvider()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • contains

        public boolean contains​(VertexType vertexType,
                                String openiamId)
      • fixRabbitMQFanoutIssue

        @Scheduled(fixedRateString="${org.openiam.graph.id.rabbitmq.fanout.fix.threadsweep}",
                   initialDelayString="${org.openiam.graph.id.rabbitmq.fanout.fix.threadsweep}")
        public void fixRabbitMQFanoutIssue()
        OE-2027 Sometimes, messages to the method do not reach the destination. This can happen if, for example a network partition happen, and the FANOUT message from RabbitmQ gets dropped This thread will fix it

        The sweep time is the same as for

      • sweep

        public void sweep()
        Gets the graph cache from redis, and puts it locally, so that you don't go to redis too often Method called by
        Specified by:
        sweep in interface Sweepable
      • refreshTemporaryCacheEntry

        public void refreshTemporaryCacheEntry​(VertexType type,
                                               String openiamId,
                                               String graphId)
      • convertId

        public abstract Object convertId​(String graphId)