org.drools.jsr94.rules
Class Jsr94FactHandle
java.lang.Object
org.drools.reteoo.FactHandleImpl
org.drools.jsr94.rules.Jsr94FactHandle
- All Implemented Interfaces:
- Serializable, Handle, FactHandle
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.
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 |
Jsr94FactHandle(long id,
long recency)
Constructs a new Handle . |
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 Handle
s have greater values
than Handle
s created further in the past)- See Also:
RecencyConflictResolver
Copyright © 2001-2005 The Codehaus. All Rights Reserved.