Package io.siddhi.core.table
Class CacheTableLRU
- java.lang.Object
-
- io.siddhi.core.table.Table
-
- io.siddhi.core.table.InMemoryTable
-
- io.siddhi.core.table.CacheTable
-
- io.siddhi.core.table.CacheTableLRU
-
- All Implemented Interfaces:
FindableProcessor,MemoryCalculable
public class CacheTableLRU extends CacheTable
cache table with LRU entry removal
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.siddhi.core.table.CacheTable
CacheTable.CacheCompiledConditionWithRouteToCache
-
Nested classes/interfaces inherited from class io.siddhi.core.table.InMemoryTable
InMemoryTable.TableState
-
Nested classes/interfaces inherited from class io.siddhi.core.table.Table
Table.OnErrorAction
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.table.Table
siddhiAppContext, tableDefinition, tableMap
-
-
Constructor Summary
Constructors Constructor Description CacheTableLRU()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StreamEventaddRequiredFields(ComplexEvent event, SiddhiAppContext siddhiAppContext, boolean cacheExpiryEnabled)voiddeleteEntriesUsingCachePolicy(int numRowsToDelete)voiddeleteOneEntryUsingCachePolicy()voidupdateCachePolicyAttribute(StreamEvent streamEvent)-
Methods inherited from class io.siddhi.core.table.CacheTable
addAndTrimUptoMaxSize, addStreamEventUptoMaxSize, compileCondition, deleteAll, generateCacheCompileCondition, init, initCacheTable, updateOrAddAndTrimUptoMaxSize
-
Methods inherited from class io.siddhi.core.table.InMemoryTable
add, compileCondition, compileUpdateSet, connectAndLoadCache, contains, delete, destroy, disconnect, find, getTableDefinition, isStateful, reduceEventsForUpdateOrInsert, size, update, updateOrAdd
-
Methods inherited from class io.siddhi.core.table.Table
addEvents, connectWithRetry, containsEvent, deleteEvents, find, getHandler, getIsConnected, getIsTryingToConnect, initTable, onAddError, onDeleteError, onUpdateError, onUpdateOrAddError, setIsConnectedToFalse, shutdown, updateEvents, updateOrAddEvents, waitWhileConnect
-
-
-
-
Method Detail
-
deleteOneEntryUsingCachePolicy
public void deleteOneEntryUsingCachePolicy()
- Specified by:
deleteOneEntryUsingCachePolicyin classCacheTable
-
deleteEntriesUsingCachePolicy
public void deleteEntriesUsingCachePolicy(int numRowsToDelete)
- Specified by:
deleteEntriesUsingCachePolicyin classCacheTable
-
addRequiredFields
protected StreamEvent addRequiredFields(ComplexEvent event, SiddhiAppContext siddhiAppContext, boolean cacheExpiryEnabled)
- Specified by:
addRequiredFieldsin classCacheTable
-
updateCachePolicyAttribute
public void updateCachePolicyAttribute(StreamEvent streamEvent)
- Specified by:
updateCachePolicyAttributein classCacheTable
-
-