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 Details

    • TableModState

      public TableModState()
  • Method Details

    • isValid

      public boolean isValid(io.ebean.cache.QueryCacheEntry entry)
      Specified by:
      isValid in interface io.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:
      notify in interface io.ebean.cache.ServerCacheNotify
    • notify

      public void notify(RemoteTableMod tableMod)
      Update from Remote transaction event.

      Generally this is used with Clustering (ebean-cluster, k8scache).