Interface LinearizabilityChecker.KeyedSpec
-
- All Superinterfaces:
LinearizabilityChecker.SequentialSpec
- Enclosing class:
- LinearizabilityChecker
public static interface LinearizabilityChecker.KeyedSpec extends LinearizabilityChecker.SequentialSpec
Sequential specification of a datatype that allows for keyed access, providing compositional checking (seeLinearizabilityChecker.SequentialSpec.partition(List)).
-
-
Method Summary
Modifier and Type Method Description java.lang.ObjectgetKey(java.lang.Object value)extracts the key from the given keyed invocation input valuejava.lang.ObjectgetValue(java.lang.Object value)extracts the key-less value from the given keyed invocation input valuedefault java.util.Collection<java.util.List<LinearizabilityChecker.Event>>partition(java.util.List<LinearizabilityChecker.Event> events)For compositional checking, the history can be partitioned into sub-histories-
Methods inherited from interface org.elasticsearch.cluster.coordination.LinearizabilityChecker.SequentialSpec
initialState, nextState
-
-
-
-
Method Detail
-
getKey
java.lang.Object getKey(java.lang.Object value)
extracts the key from the given keyed invocation input value
-
getValue
java.lang.Object getValue(java.lang.Object value)
extracts the key-less value from the given keyed invocation input value
-
partition
default java.util.Collection<java.util.List<LinearizabilityChecker.Event>> partition(java.util.List<LinearizabilityChecker.Event> events)
Description copied from interface:LinearizabilityChecker.SequentialSpecFor compositional checking, the history can be partitioned into sub-histories- Specified by:
partitionin interfaceLinearizabilityChecker.SequentialSpec- Parameters:
events- the history of events to partition- Returns:
- the partitioned history
-
-