Class TableModState
- java.lang.Object
-
- io.ebeaninternal.server.transaction.TableModState
-
- All Implemented Interfaces:
QueryCacheEntryValidate
,ServerCacheNotify
public class TableModState extends Object implements QueryCacheEntryValidate, ServerCacheNotify
Holds timestamp of last modification per table.This information is used to validate entries in the L2 query caches.
-
-
Constructor Summary
Constructors Constructor Description TableModState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(QueryCacheEntry entry)
Return true if the entry is still valid based on dependent tables.void
notify(ServerCacheNotification notification)
Update the table modification timestamps based on remote table modification events.void
notify(RemoteTableMod tableMod)
Update from Remote transaction event.
-
-
-
Constructor Detail
-
TableModState
public TableModState()
-
-
Method Detail
-
isValid
public boolean isValid(QueryCacheEntry entry)
Description copied from interface:QueryCacheEntryValidate
Return true if the entry is still valid based on dependent tables.- Specified by:
isValid
in interfaceQueryCacheEntryValidate
-
notify
public void notify(ServerCacheNotification notification)
Update the table modification timestamps based on remote table modification events.Generally this is used with distributed caches (Hazelcast, Ignite etc) via topic.
- Specified by:
notify
in interfaceServerCacheNotify
-
notify
public void notify(RemoteTableMod tableMod)
Update from Remote transaction event.Generally this is used with Clustering (ebean-cluster, k8scache).
-
-