FileDocCategorySizeDatePackage
LinkObject.javaAPI DocApache Tomcat 6.0.143063Fri Jul 20 04:20:32 BST 2007org.apache.catalina.tribes.transport.bio.util

LinkObject

public class LinkObject extends Object
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
author
Filip Hanik
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private org.apache.catalina.tribes.ChannelMessage
msg
private LinkObject
next
private byte[]
key
private org.apache.catalina.tribes.Member[]
destination
private org.apache.catalina.tribes.group.InterceptorPayload
payload
Constructors Summary
public LinkObject(org.apache.catalina.tribes.ChannelMessage msg, org.apache.catalina.tribes.Member[] destination, org.apache.catalina.tribes.group.InterceptorPayload payload)
Construct a new element from the data object. Sets the pointer to null.

param
key The key
param
payload The data object.

        this.msg = msg;
        this.next = null;
        this.key = msg.getUniqueId();
        this.payload = payload;
        this.destination = destination;
    
Methods Summary
public voidappend(org.apache.catalina.tribes.transport.bio.util.LinkObject next)
Set the next element.

param
next The next element.

        this.next = next;
    
public org.apache.catalina.tribes.ChannelMessagedata()
Get the data object from the element.

return
The data object from the element.

        return msg;
    
public org.apache.catalina.tribes.Member[]getDestination()

        return destination;
    
public org.apache.catalina.tribes.ErrorHandlergetHandler()

        return payload!=null?payload.getErrorHandler():null;
    
public byte[]getKey()
Get the unique message id

return
the unique message id

        return key;
    
public org.apache.catalina.tribes.group.InterceptorPayloadgetPayload()

        return payload;
    
public org.apache.catalina.tribes.transport.bio.util.LinkObjectnext()
Get the next element.

return
The next element.

        return next;
    
public voidsetNext(org.apache.catalina.tribes.transport.bio.util.LinkObject next)

        this.next = next;