java.lang.Object
org.infinispan.hibernate.cache.commons.util.Tombstone
All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object>,Void>, org.infinispan.commands.functional.functions.InjectableComponent, CompletableFunction

public class Tombstone extends Object implements Function<org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object>,Void>, org.infinispan.commands.functional.functions.InjectableComponent, CompletableFunction
This is used both as the storage in entry, and for efficiency also directly in the cache.put() commands.
Author:
Radim Vansa <rvansa@redhat.com>
  • Field Details

  • Constructor Details

    • Tombstone

      public Tombstone(UUID uuid, long timestamp)
  • Method Details

    • getLastTimestamp

      public long getLastTimestamp()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • merge

      public Tombstone merge(Tombstone update)
    • applyUpdate

      public Object applyUpdate(UUID uuid, long timestamp, Object value)
    • size

      public int size()
    • apply

      public Void apply(org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object> view)
      Specified by:
      apply in interface Function<org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object>,Void>
    • inject

      public void inject(org.infinispan.factories.ComponentRegistry registry)
      Specified by:
      inject in interface org.infinispan.commands.functional.functions.InjectableComponent
    • isComplete

      public boolean isComplete()
      Specified by:
      isComplete in interface CompletableFunction
    • markComplete

      public void markComplete()
      Specified by:
      markComplete in interface CompletableFunction