org.drools.jsr94.rules
Class Jsr94EventFactHandle
java.lang.Object
org.drools.common.DefaultFactHandle
org.drools.common.EventFactHandle
org.drools.jsr94.rules.Jsr94EventFactHandle
- All Implemented Interfaces:
- Serializable, Cloneable, javax.rules.Handle, InternalFactHandle, org.drools.runtime.rule.FactHandle
public class Jsr94EventFactHandle
- extends EventFactHandle
- implements javax.rules.Handle
The Drools implementation of the 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.
- See Also:
- Serialized Form
Constructor Summary |
Jsr94EventFactHandle(long id,
Object object,
long recency,
long timestamp,
long duration,
org.drools.runtime.rule.WorkingMemoryEntryPoint entryPoint)
Creates a new event fact handle. |
Methods inherited from class org.drools.common.EventFactHandle |
clone, decreaseActivationsCount, getActivationsCount, getDuration, getEndTimestamp, getStartTimestamp, increaseActivationsCount, isEvent, isExpired, setExpired, toExternalForm, toString |
Methods inherited from class org.drools.common.DefaultFactHandle |
disconnect, equals, getEntryPoint, getEqualityKey, getExternalForm, getFirstLeftTuple, getFirstRightTuple, getId, getIdentityHashCode, getLastLeftTuple, getLastRightTuple, getObject, getObjectHashCode, getRecency, hashCode, invalidate, isDisconnected, isValid, setEntryPoint, setEqualityKey, setFirstLeftTuple, setFirstRightTuple, setLastLeftTuple, setLastRightTuple, setObject, setObjectHashCode, setRecency, toTupleTree |
Jsr94EventFactHandle
public Jsr94EventFactHandle(long id,
Object object,
long recency,
long timestamp,
long duration,
org.drools.runtime.rule.WorkingMemoryEntryPoint entryPoint)
- Creates a new event fact handle.
- Parameters:
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-2013 JBoss Inc.. All Rights Reserved.