Class CachePrimer

  • All Implemented Interfaces:
    Runnable, org.springframework.beans.factory.InitializingBean

    public class CachePrimer
    extends Object
    implements org.springframework.beans.factory.InitializingBean, Runnable
    • Constructor Detail

      • CachePrimer

        @Inject
        public CachePrimer​(@Named("cache.priming.disable")
                           boolean primingDisabled,
                           @Named("cache.priming.block_ms")
                           long blockWhilePrimingMs,
                           @Named("cache.priming.fetch_size")
                           int fetchSize,
                           @Named("cache.priming.fetch_more_threshold")
                           int fetchMoreThreshold)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • setSession

        public void setSession​(org.opennms.newts.cassandra.CassandraSession session)
      • setContext

        public void setContext​(org.opennms.newts.api.Context context)