javax.slee.resource
Interface ActivityHandle


public interface ActivityHandle

The ActivityHandle interface is implemented by each Resource Adaptor. An activity handle uniquely identifies an activity. There is a one-to-one relationship between an activity handle and its associated activity. Within the SLEE events are always delivered on an ActivityContext. The ActivityHandle is used by the SLEE to identify which ActivityContext to use.

An implementation of this interface must implement the equals and hashCode methods in this interface so that:

Since:
SLEE 1.1

Method Summary
 boolean equals(java.lang.Object obj)
          Compare this activity handle for equality with another.
 int hashCode()
          Get a hash code for this activity handle.
 

Method Detail

equals

boolean equals(java.lang.Object obj)
Compare this activity handle for equality with another. Two activity handles are considered equal if they both reference the same underlying activity object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this with.
Returns:
true if obj is an instance of this class and references the same underlying activity as this, false otherwise.

hashCode

int hashCode()
Get a hash code for this activity handle. The hash code must be consistent across multiple Java VM processes and marshal/unmarshal operations.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value.


Copyright © 2008. All Rights Reserved.