org.apache.catalina.cluster.util
public class: LinkObject [javadoc |
source]
java.lang.Object
org.apache.catalina.cluster.util.LinkObject
The class
LinkObject implements an element
for a linked list, consisting of a general
data object and a pointer to the next element.
- author:
Rainer
- Jung
- author:
Peter
- Rossbach
- version:
$
- Revision: 304032 $ $Date: 2005-07-27 11:11:55 -0400 (Wed, 27 Jul 2005) $
Constructor: |
public LinkObject(String key,
Object payload) {
this.payload = payload;
this.next = null;
this.key = key ;
}
Construct a new element from the data object.
Sets the pointer to null. Parameters:
key - The key
payload - The data object.
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.catalina.cluster.util.LinkObject Detail: |
public void append(LinkObject next) {
this.next = next;
}
|
public Object data() {
return payload;
}
Get the data object from the element. |
public Object getKey() {
return key;
}
Get the unique message id |
public LinkObject next() {
return next;
}
|