Class CachePrimer

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

    public class CachePrimer
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean, java.lang.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 java.lang.Runnable
      • setSession

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

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