java.lang.Object
io.ebeaninternal.server.transaction.TableModState
- All Implemented Interfaces:
QueryCacheEntryValidate,ServerCacheNotify
public final 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(QueryCacheEntry entry) voidnotify(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
- Specified by:
isValidin interfaceQueryCacheEntryValidate
-
notify
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 interfaceServerCacheNotify
-
notify
Update from Remote transaction event.Generally this is used with Clustering (ebean-cluster, k8scache).
-