org.objectweb.dream.message
Interface Chunk

All Superinterfaces:
Recyclable
All Known Implementing Classes:
AbstractChunk

public interface Chunk
extends Recyclable

An interface that represent a chunk.

WARNING : this class is not designed to be implemented by every chunk returned by Message.getChunk(String). But should be implemented by class implementing a single chunk interface, and supposed to be used in extensible message


Method Summary
 short getMessageManagerId()
          Returns the id of the message manager that created this chunk.
 ChunkType getType()
          Returns the type of this chunk.
 void setMessageManagerId(short messageManagerId)
          Sets the id of the message manager that created this chunk.
 void transfertState(Chunk newInstance)
          Transferts the state of this chunk into the specified new instance.
 
Methods inherited from interface org.objectweb.dream.pool.Recyclable
recycle
 

Method Detail

getMessageManagerId

public short getMessageManagerId()
Returns the id of the message manager that created this chunk.

Returns:
the id of the message manager that created this chunk.

setMessageManagerId

public void setMessageManagerId(short messageManagerId)
Sets the id of the message manager that created this chunk.

Parameters:
messageManagerId - the id to set.

getType

public ChunkType getType()
Returns the type of this chunk.

Returns:
the type of this chunk.

transfertState

public void transfertState(Chunk newInstance)
Transferts the state of this chunk into the specified new instance.

Parameters:
newInstance - the new instance of chunk.


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