|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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:
handle1.equals(handle2) is true if and only if the two handles
reference the same underlying activity object
handle.hashCode() always returns the same value for the same underlying
activity object, regardless of the Java VM process in which the activity may reside.
| 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 |
|---|
boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this with.
true if obj is an instance of this class and
references the same underlying activity as this, false otherwise.int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||