Class TableModState
java.lang.Object
io.ebeaninternal.server.transaction.TableModState
- All Implemented Interfaces:
io.ebean.cache.QueryCacheEntryValidate, io.ebean.cache.ServerCacheNotify
public final class TableModState
extends Object
implements io.ebean.cache.QueryCacheEntryValidate, io.ebean.cache.ServerCacheNotify
Holds timestamp of last modification per table.
This information is used to validate entries in the L2 query caches.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(io.ebean.cache.QueryCacheEntry entry) voidnotify(io.ebean.cache.ServerCacheNotification notification) Update the table modification timestamps based on remote table modification events.voidnotify(RemoteTableMod tableMod) Update from Remote transaction event.
-
Constructor Details
-
TableModState
public TableModState()
-
-
Method Details
-
isValid
public boolean isValid(io.ebean.cache.QueryCacheEntry entry) - Specified by:
isValidin interfaceio.ebean.cache.QueryCacheEntryValidate
-
notify
public void notify(io.ebean.cache.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:
notifyin interfaceio.ebean.cache.ServerCacheNotify
-
notify
Update from Remote transaction event.Generally this is used with Clustering (ebean-cluster, k8scache).
-