org.apache.catalina.tribes.transport.bio.util

Class 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.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Rainer Jung Peter Rossbach Filip Hanik

Constructor Summary
LinkObject(ChannelMessage msg, Member[] destination, InterceptorPayload payload)
Construct a new element from the data object.
Method Summary
voidappend(LinkObject next)
Set the next element.
ChannelMessagedata()
Get the data object from the element.
Member[]getDestination()
ErrorHandlergetHandler()
byte[]getKey()
Get the unique message id
InterceptorPayloadgetPayload()
LinkObjectnext()
Get the next element.
voidsetNext(LinkObject next)

Constructor Detail

LinkObject

public LinkObject(ChannelMessage msg, Member[] destination, InterceptorPayload payload)
Construct a new element from the data object. Sets the pointer to null.

Parameters: key The key payload The data object.

Method Detail

append

public void append(LinkObject next)
Set the next element.

Parameters: next The next element.

data

public ChannelMessage data()
Get the data object from the element.

Returns: The data object from the element.

getDestination

public Member[] getDestination()

getHandler

public ErrorHandler getHandler()

getKey

public byte[] getKey()
Get the unique message id

Returns: the unique message id

getPayload

public InterceptorPayload getPayload()

next

public LinkObject next()
Get the next element.

Returns: The next element.

setNext

public void setNext(LinkObject next)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.