org.apache.jcs.auxiliary.lateral
Class LateralElementDescriptor

java.lang.Object
  extended by org.apache.jcs.auxiliary.lateral.LateralElementDescriptor
All Implemented Interfaces:
java.io.Serializable

public class LateralElementDescriptor
extends java.lang.Object
implements java.io.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 ce
          The Cache Element that we are distributing.
 int command
          The operation has been requested by the client.
static int DISPOSE
          The int for disposing the cache.
static int GET
          Command to return an object.
static int GET_MATCHING
          Command to return an object.
static int REMOVE
          The int for removes
static int REMOVEALL
          The int instructing us to remove all
 long requesterId
          The id of the the source of the request.
static int UPDATE
          The int for updates
 int valHashCode
          The hashcode value for this element.
 
Constructor Summary
LateralElementDescriptor()
          Constructor for the LateralElementDescriptor object
LateralElementDescriptor(ICacheElement ce)
          Constructor for the LateralElementDescriptor object
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE

public static final int UPDATE
The int for updates

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
The int for removes

See Also:
Constant Field Values

REMOVEALL

public static final int REMOVEALL
The int instructing us to remove all

See Also:
Constant Field Values

DISPOSE

public static final int DISPOSE
The int for disposing the cache.

See Also:
Constant Field Values

GET

public static final int GET
Command to return an object.

See Also:
Constant Field Values

GET_MATCHING

public static final int GET_MATCHING
Command to return an object.

See Also:
Constant Field Values

ce

public ICacheElement 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 int 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 ce)
Constructor for the LateralElementDescriptor object

Parameters:
ce - ICacheElement payload
Method Detail

toString

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


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.