org.drools.jsr94.rules
Class Jsr94FactHandle

java.lang.Object
  extended byorg.drools.reteoo.FactHandleImpl
      extended byorg.drools.jsr94.rules.Jsr94FactHandle
All Implemented Interfaces:
FactHandle, Handle, Serializable

public class Jsr94FactHandle
extends FactHandleImpl
implements 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

Constructor Summary
(package private) Jsr94FactHandle(long id, long recency)
          Constructs a new Handle.
 
Methods inherited from class org.drools.reteoo.FactHandleImpl
equals, getId, getRecency, hashCode, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Jsr94FactHandle

Jsr94FactHandle(long id,
                long recency)
Constructs a new Handle.

Parameters:
id - A unique Handle id.
recency - A value indicating the recency of this Handle (more recently created Handles have greater values than Handles created further in the past)
See Also:
RecencyConflictResolver


Copyright © 2001-2004 The Codehaus. All Rights Reserved.