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

    java.lang.Object
      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.

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
`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:
    `key` - The key
    `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()

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