org.drools.jsr94.rules
Class Jsr94EventFactHandle

java.lang.Object
  extended by org.drools.common.DefaultFactHandle
      extended by org.drools.common.EventFactHandle
          extended by 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.

Handles 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

Field Summary
 
Fields inherited from class org.drools.common.DefaultFactHandle
firstLeftTuple, firstRightTuple, lastLeftTuple, lastRightTuple
 
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.
 
Method Summary
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 ID
object - the event object encapsulated in this event fact handle
recency - the recency of this event fact handle
timestamp - the timestamp of the occurence of this event
duration - the duration of this event. May be 0 (zero) in case this is a primitive event.


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.