Package org.drools.core.common
Interface InternalFactHandle
-
- All Superinterfaces:
java.lang.Cloneable
,org.kie.api.runtime.rule.FactHandle
,java.io.Serializable
- All Known Implementing Classes:
DefaultEventHandle
,DefaultFactHandle
,DisconnectedFactHandle
,InternalFactHandle.DummyFactHandle
,QueryElementFactHandle
public interface InternalFactHandle extends org.kie.api.runtime.rule.FactHandle, java.lang.Cloneable, java.io.Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InternalFactHandle.DummyFactHandle
static interface
InternalFactHandle.LinkedTuples
-
Method Summary
-
-
-
Method Detail
-
getId
long getId()
- Specified by:
getId
in interfaceorg.kie.api.runtime.rule.FactHandle
-
getRecency
long getRecency()
- Specified by:
getRecency
in interfaceorg.kie.api.runtime.rule.FactHandle
-
getObject
java.lang.Object getObject()
- Specified by:
getObject
in interfaceorg.kie.api.runtime.rule.FactHandle
-
getObjectClassName
java.lang.String getObjectClassName()
-
setObject
void setObject(java.lang.Object object)
-
setEqualityKey
void setEqualityKey(EqualityKey key)
-
getEqualityKey
EqualityKey getEqualityKey()
-
setRecency
void setRecency(long recency)
-
invalidate
void invalidate()
-
isValid
boolean isValid()
- Specified by:
isValid
in interfaceorg.kie.api.runtime.rule.FactHandle
-
getIdentityHashCode
int getIdentityHashCode()
-
getObjectHashCode
int getObjectHashCode()
-
isDisconnected
boolean isDisconnected()
-
setDisconnected
default void setDisconnected(boolean disconnected)
-
isEvent
boolean isEvent()
Returns true if this FactHandle represents and Event or false if this FactHandle represents a regular Fact- Specified by:
isEvent
in interfaceorg.kie.api.runtime.rule.FactHandle
- Returns:
-
isTraitOrTraitable
boolean isTraitOrTraitable()
-
isTraitable
boolean isTraitable()
-
isTraiting
boolean isTraiting()
-
getTraitType
org.drools.base.factmodel.traits.TraitTypeEnum getTraitType()
-
getFirstRightTuple
RightTuple getFirstRightTuple()
-
getFirstLeftTuple
LeftTuple getFirstLeftTuple()
-
getReteEvaluator
default ReteEvaluator getReteEvaluator()
-
getEntryPointId
org.drools.base.rule.EntryPointId getEntryPointId()
-
getEntryPointName
default java.lang.String getEntryPointName()
-
getEntryPoint
WorkingMemoryEntryPoint getEntryPoint(ReteEvaluator reteEvaluator)
-
clone
InternalFactHandle clone()
-
toExternalForm
java.lang.String toExternalForm()
- Specified by:
toExternalForm
in interfaceorg.kie.api.runtime.rule.FactHandle
-
disconnect
void disconnect()
-
addFirstLeftTuple
void addFirstLeftTuple(LeftTuple leftTuple)
-
addLastLeftTuple
void addLastLeftTuple(LeftTuple leftTuple)
-
removeLeftTuple
void removeLeftTuple(LeftTuple leftTuple)
-
clearLeftTuples
void clearLeftTuples()
-
clearRightTuples
void clearRightTuples()
-
addFirstRightTuple
void addFirstRightTuple(RightTuple rightTuple)
-
addLastRightTuple
void addLastRightTuple(RightTuple rightTuple)
-
removeRightTuple
void removeRightTuple(RightTuple rightTuple)
-
addTupleInPosition
void addTupleInPosition(Tuple tuple)
-
isNegated
boolean isNegated()
- Specified by:
isNegated
in interfaceorg.kie.api.runtime.rule.FactHandle
-
setNegated
void setNegated(boolean negated)
-
isExpired
boolean isExpired()
-
isPendingRemoveFromStore
boolean isPendingRemoveFromStore()
-
forEachRightTuple
void forEachRightTuple(java.util.function.Consumer<RightTuple> rightTupleConsumer)
-
forEachLeftTuple
void forEachLeftTuple(java.util.function.Consumer<AbstractLeftTuple> leftTupleConsumer)
-
findFirstRightTuple
RightTuple findFirstRightTuple(java.util.function.Predicate<RightTuple> rightTuplePredicate)
-
findFirstLeftTuple
LeftTuple findFirstLeftTuple(java.util.function.Predicate<AbstractLeftTuple> lefttTuplePredicate)
-
setFirstLeftTuple
void setFirstLeftTuple(LeftTuple firstLeftTuple)
-
detachLinkedTuples
InternalFactHandle.LinkedTuples detachLinkedTuples()
-
detachLinkedTuplesForPartition
InternalFactHandle.LinkedTuples detachLinkedTuplesForPartition(int i)
-
getLinkedTuples
InternalFactHandle.LinkedTuples getLinkedTuples()
-
hasMatches
default boolean hasMatches()
-
getParentHandle
default InternalFactHandle getParentHandle()
-
setParentHandle
default void setParentHandle(InternalFactHandle parentHandle)
-
dummyFactHandleOf
static InternalFactHandle dummyFactHandleOf(java.lang.Object object)
-
-