Package io.higson.runtime.evict
Class ParamEvictor
java.lang.Object
io.higson.runtime.evict.ParamEvictor
-
Constructor Summary
ConstructorsConstructorDescriptionParamEvictor(PreparedParamCache indexCache) ParamEvictor(PreparedParamCache indexCache, Reloader reloader, HigsonFlightRecorder flightRecorder, ExtSqlExecutor sqlExecutor) ParamEvictor(PreparedParamCache indexCache, Clock clock, Reloader reloader, HigsonFlightRecorder flightRecorder, ExtSqlExecutor sqlExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidevict()Checks each external source parameter stored in the index cache.
-
Constructor Details
-
ParamEvictor
public ParamEvictor(PreparedParamCache indexCache, Clock clock, Reloader reloader, HigsonFlightRecorder flightRecorder, ExtSqlExecutor sqlExecutor) -
ParamEvictor
public ParamEvictor(PreparedParamCache indexCache, Reloader reloader, HigsonFlightRecorder flightRecorder, ExtSqlExecutor sqlExecutor) -
ParamEvictor
-
-
Method Details
-
evict
public void evict()Checks each external source parameter stored in the index cache. Evicts a parameter from the cache if one of the following conditions is true: 1. the parameter's TTL (auto refresh) has expired 2. the parameter's matrix fingerpring has changed 3. the parameter has not been used for longer that max-idle-time
-