Class Tombstone
- 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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tombstone.ExcludeTombstonesFilter
static class
Tombstone.ExcludeTombstonesFilterExternalizer
static class
Tombstone.Externalizer
-
Field Summary
Fields Modifier and Type Field Description static Tombstone.ExcludeTombstonesFilter
EXCLUDE_TOMBSTONES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
apply(org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object> view)
Object
applyUpdate(UUID uuid, long timestamp, Object value)
long
getLastTimestamp()
void
inject(org.infinispan.factories.ComponentRegistry registry)
boolean
isComplete()
void
markComplete()
Tombstone
merge(Tombstone update)
int
size()
String
toString()
-
-
-
Field Detail
-
EXCLUDE_TOMBSTONES
public static final Tombstone.ExcludeTombstonesFilter EXCLUDE_TOMBSTONES
-
-
Constructor Detail
-
Tombstone
public Tombstone(UUID uuid, long timestamp)
-
-
Method Detail
-
getLastTimestamp
public long getLastTimestamp()
-
size
public int size()
-
apply
public Void apply(org.infinispan.functional.EntryView.ReadWriteEntryView<Object,Object> view)
-
inject
public void inject(org.infinispan.factories.ComponentRegistry registry)
- Specified by:
inject
in interfaceorg.infinispan.commands.functional.functions.InjectableComponent
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceCompletableFunction
-
markComplete
public void markComplete()
- Specified by:
markComplete
in interfaceCompletableFunction
-
-