public class Jsr94EventFactHandle
extends org.drools.core.common.EventFactHandle
implements javax.rules.Handle
Handle
interface which provides
a marker interface for Drools-specific object identity mechanism. When using
the StatefulRuleSession
objects that are added to rule session
state are identified using a Drools-supplied Handle
implementation.
Handle
s are used to unambigiously identify objects within the
rule session state and should not suffer many of the object identity issues
that arise when using muliple class loaders, serializing
StatefulRuleSessions
, or using Object.equals
or
object1 == object2
reference equality.Constructor and Description |
---|
Jsr94EventFactHandle(long id,
Object object,
long recency,
long timestamp,
long duration,
org.kie.api.runtime.rule.EntryPoint entryPoint)
Creates a new event fact handle.
|
addJob, clone, cloneAndLink, compareTo, decreaseActivationsCount, getActivationsCount, getDuration, getEndTimestamp, getStartTimestamp, increaseActivationsCount, isEvent, isExpired, quickClone, removeJob, setActivationsCount, setExpired, toExternalForm, toString, unscheduleAllJobs
addFirstLeftTuple, addFirstRightTuple, addLastLeftTuple, addLastRightTuple, addLeftTupleInPosition, addRightTupleInPosition, clearLeftTuples, clearRightTuples, determineIdentityHashCode, disconnect, equals, getEntryPoint, getEqualityKey, getExternalForm, getFirstLeftTuple, getFirstRightTuple, getId, getIdentityHashCode, getLastLeftTuple, getLastRightTuple, getObject, getObjectHashCode, getRecency, hashCode, invalidate, isDisconnected, isTraitable, isTraiting, isTraitOrTraitable, isValid, quickCloneUpdate, removeLeftTuple, removeRightTuple, setEntryPoint, setEqualityKey, setExternalForm, setFirstLeftTuple, setFirstRightTuple, setLastLeftTuple, setLastRightTuple, setObject, setObjectHashCode, setRecency, toTupleTree
public Jsr94EventFactHandle(long id, Object object, long recency, long timestamp, long duration, org.kie.api.runtime.rule.EntryPoint entryPoint)
id
- this event fact handle IDobject
- the event object encapsulated in this event fact handlerecency
- the recency of this event fact handletimestamp
- the timestamp of the occurence of this eventduration
- the duration of this event. May be 0 (zero) in case this is a primitive event.Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.