bunshin.messaging
Class CacheMessage

java.lang.Object
  extended by bunshin.messaging.BunshinMessage
      extended by 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 class bunshin.messaging.BunshinMessage
context
 
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)
           
 
Method Summary
 rice.p2p.commonapi.Id getKey()
           
 int getPriority()
           
 short getType()
           
 java.io.Serializable getValues()
           
 void serialize(rice.p2p.commonapi.rawserialization.OutputBuffer buf)
           
 java.lang.String toString()
           
 
Methods inherited from class bunshin.messaging.BunshinMessage
deserialize, getContext, serialize, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

protected static final short TYPE
Raw Serialization

See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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