org.apache.jcs.auxiliary.lateral
Class LateralElementDescriptor<K extends Serializable,V extends Serializable>

java.lang.Object
  extended by org.apache.jcs.auxiliary.lateral.LateralElementDescriptor<K,V>
All Implemented Interfaces:
Serializable

public class LateralElementDescriptor<K extends Serializable,V extends Serializable>
extends Object
implements Serializable

This class wraps command to other laterals. It is essentially a JCS-TCP-Lateral packet. The headers specify the action the receiver should take.

See Also:
Serialized Form

Field Summary
 ICacheElement<K,V> ce
          The Cache Element that we are distributing.
 LateralCommand command
          The operation has been requested by the client.
 long requesterId
          The id of the the source of the request.
 int valHashCode
          The hashcode value for this element.
 
Constructor Summary
LateralElementDescriptor()
          Constructor for the LateralElementDescriptor object
LateralElementDescriptor(ICacheElement<K,V> ce)
          Constructor for the LateralElementDescriptor object
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ce

public ICacheElement<K extends Serializable,V extends Serializable> ce
The Cache Element that we are distributing.


requesterId

public long requesterId
The id of the the source of the request. This is used to prevent infinite loops.


command

public LateralCommand command
The operation has been requested by the client.


valHashCode

public int valHashCode
The hashcode value for this element.

Constructor Detail

LateralElementDescriptor

public LateralElementDescriptor()
Constructor for the LateralElementDescriptor object


LateralElementDescriptor

public LateralElementDescriptor(ICacheElement<K,V> ce)
Constructor for the LateralElementDescriptor object

Parameters:
ce - ICacheElement payload
Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
String, all the important values that can be configured


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.