bunshin.messaging
Class CacheMessage
java.lang.Object
bunshin.messaging.BunshinMessage
bunshin.messaging.CacheMessage
- All Implemented Interfaces:
- java.io.Serializable, rice.p2p.commonapi.Message, rice.p2p.commonapi.rawserialization.RawMessage, rice.p2p.commonapi.rawserialization.RawSerializable
public class CacheMessage
- extends BunshinMessage
The cache message.
- Author:
- Ruben Mondejar
- See Also:
- Serialized Form
|
Field Summary |
protected static short |
TYPE
Raw Serialization |
| Fields inherited from interface rice.p2p.commonapi.Message |
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
|
Constructor Summary |
CacheMessage(rice.p2p.commonapi.Id key,
java.io.Serializable values)
|
CacheMessage(rice.p2p.commonapi.rawserialization.InputBuffer buf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
protected static final short TYPE
- Raw Serialization
- See Also:
- Constant Field Values
CacheMessage
public CacheMessage(rice.p2p.commonapi.Id key,
java.io.Serializable values)
CacheMessage
public CacheMessage(rice.p2p.commonapi.rawserialization.InputBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
getKey
public rice.p2p.commonapi.Id getKey()
getValues
public java.io.Serializable getValues()
getPriority
public int getPriority()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getType
public short getType()
serialize
public void serialize(rice.p2p.commonapi.rawserialization.OutputBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException