Class LateralElementDescriptor<K,V>
java.lang.Object
org.apache.commons.jcs3.auxiliary.lateral.LateralElementDescriptor<K,V>
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Cache Element that we are distributing.The operation has been requested by the client.longThe id of the source of the request.intThe hash code value for this element. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor for the LateralElementDescriptor objectLateralElementDescriptor(ICacheElement<K, V> ce, LateralCommand command) Constructor for the LateralElementDescriptor objectLateralElementDescriptor(ICacheElement<K, V> ce, LateralCommand command, long requesterId) Constructor for the LateralElementDescriptor object -
Method Summary
Modifier and TypeMethodDescriptionReturn operation requested by the clientReturn payloadlongReturn id of the source of the requestinttoString()
-
Field Details
-
ce
The Cache Element that we are distributing. -
requesterId
The id of the source of the request. This is used to prevent infinite loops. -
command
The operation has been requested by the client. -
valHashCode
The hash code value for this element.
-
-
Constructor Details
-
LateralElementDescriptor
Deprecated.Constructor for the LateralElementDescriptor object -
LateralElementDescriptor
Constructor for the LateralElementDescriptor object- Parameters:
ce- ICacheElement<K, V> payload
-
LateralElementDescriptor
Constructor for the LateralElementDescriptor object- Parameters:
ce- ICacheElement<K, V> payloadcommand- operation requested by the client- Since:
- 3.1
-
LateralElementDescriptor
Constructor for the LateralElementDescriptor object- Parameters:
ce- ICacheElement<K, V> payloadcommand- operation requested by the clientrequesterId- id of the source of the request- Since:
- 3.1
-
-
Method Details
-
getPayload
Return payload- Returns:
- the ce
- Since:
- 3.1
-
getRequesterId
Return id of the source of the request- Returns:
- the requesterId
- Since:
- 3.1
-
getCommand
Return operation requested by the client- Returns:
- the command
- Since:
- 3.1
-
getValHashCode
- Returns:
- the valHashCode
- Since:
- 3.1
-
toString
-