Apache Tomcat 6.0.41

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

java.lang.Object
  extended by org.apache.catalina.tribes.transport.bio.util.LinkObject

public class LinkObject
extends java.lang.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, Peter Rossbach, Filip Hanik

Constructor Summary
LinkObject(ChannelMessage msg, Member[] destination, InterceptorPayload payload)
          Construct a new element from the data object.
 
Method Summary
 void append(LinkObject next)
          Set the next element.
 ChannelMessage data()
          Get the data object from the element.
 Member[] getDestination()
           
 ErrorHandler getHandler()
           
 byte[] getKey()
          Get the unique message id
 InterceptorPayload getPayload()
           
 LinkObject next()
          Get the next element.
 void setNext(LinkObject next)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
payload - The data object.
Method Detail

append

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

Parameters:
next - The next element.

next

public LinkObject next()
Get the next element.

Returns:
The next element.

setNext

public void setNext(LinkObject next)

data

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

Returns:
The data object from the element.

getKey

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

Returns:
the unique message id

getHandler

public ErrorHandler getHandler()

getPayload

public InterceptorPayload getPayload()

getDestination

public Member[] getDestination()

Apache Tomcat 6.0.41

Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.