org.objectweb.dream.pushwithreturn
Class KeyChunk

java.lang.Object
  extended by org.objectweb.dream.message.AbstractChunk<KeyChunk>
      extended by org.objectweb.dream.pushwithreturn.KeyChunk
All Implemented Interfaces:
Externalizable, Serializable, Recyclable

public class KeyChunk
extends AbstractChunk<KeyChunk>

Chunk for messages containing a key.

See Also:
Key, Serialized Form

Field Summary
static String DEFAULT_NAME
          The default name for chunks of this type
 
Constructor Summary
KeyChunk()
           
 
Method Summary
 Key getKey()
          Returns the key of this chunk.
 KeyChunk newChunk()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setKey(Key key)
          Sets the key of this chunk.
 void transfertStateTo(KeyChunk newInstance)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getReference, setReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
The default name for chunks of this type

See Also:
Constant Field Values
Constructor Detail

KeyChunk

public KeyChunk()
Method Detail

getKey

public Key getKey()
Returns the key of this chunk.

Returns:
the key of this chunk.

setKey

public void setKey(Key key)
Sets the key of this chunk.

Parameters:
key - the key to be set.

transfertStateTo

public void transfertStateTo(KeyChunk newInstance)
Specified by:
transfertStateTo in class AbstractChunk<KeyChunk>
See Also:
AbstractChunk.transfertStateTo(AbstractChunk)

newChunk

public KeyChunk newChunk()
Specified by:
newChunk in class AbstractChunk<KeyChunk>
See Also:
AbstractChunk.newChunk()

recycle

public void recycle()
See Also:
Recyclable.recycle()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(ObjectInput)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException
See Also:
Externalizable.writeExternal(ObjectOutput)


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.