Class TableModState

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 Details

    • TableModState

      public TableModState()
  • Method Details

    • isValid

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

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

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