Package org.opennms.netmgt.newts.support
Class CachePrimer
- java.lang.Object
-
- org.opennms.netmgt.newts.support.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 Summary
Constructors Constructor Description CachePrimer(boolean primingDisabled, long blockWhilePrimingMs, int fetchSize, int fetchMoreThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
run()
void
setContext(org.opennms.newts.api.Context context)
void
setResourceMetadataCache(GuavaSearchableResourceMetadataCache resourceMetadataCache)
void
setSession(org.opennms.newts.cassandra.CassandraSession session)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
setResourceMetadataCache
public void setResourceMetadataCache(GuavaSearchableResourceMetadataCache resourceMetadataCache)
-
setSession
public void setSession(org.opennms.newts.cassandra.CassandraSession session)
-
setContext
public void setContext(org.opennms.newts.api.Context context)
-
-