org.objectweb.dream.pushwithreturn
Class KeyChunkImpl

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.pushwithreturn.KeyChunkImpl
All Implemented Interfaces:
Chunk, Cloneable, Externalizable, KeyChunk, Recyclable, Serializable

public class KeyChunkImpl
extends AbstractChunk
implements KeyChunk, Externalizable

Basic implementation of the KeyChunkinterface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.pushwithreturn.KeyChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
KeyChunkImpl()
           
 
Method Summary
 Key getKey()
          Returns the key of this chunk.
 ChunkType getType()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setKey(Key key)
          Sets the key of this chunk.
 void transfertState(Chunk newInstance)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getMessageManagerId, setMessageManagerId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyChunkImpl

public KeyChunkImpl()
Method Detail

getKey

public Key getKey()
Description copied from interface: KeyChunk
Returns the key of this chunk.

Specified by:
getKey in interface KeyChunk
Returns:
the key of this chunk.
See Also:
KeyChunk.getKey()

setKey

public void setKey(Key key)
Description copied from interface: KeyChunk
Sets the key of this chunk.

Specified by:
setKey in interface KeyChunk
Parameters:
key - the key to be set.
See Also:
KeyChunk.setKey(Key)

getType

public ChunkType getType()
Specified by:
getType in interface Chunk
See Also:
Chunk.getType()

transfertState

public void transfertState(Chunk newInstance)
Specified by:
transfertState in interface Chunk
See Also:
Chunk.transfertState(org.objectweb.dream.message.Chunk)

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
See Also:
Recyclable.recycle()

readExternal

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

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException
See Also:
Externalizable.writeExternal(ObjectOutput)


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