org.objectweb.dream.queue
Class SequenceNumberChunkImpl

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.queue.SequenceNumberChunkImpl
All Implemented Interfaces:
Chunk, Cloneable, Externalizable, Recyclable, SequenceNumberChunk, Serializable

public class SequenceNumberChunkImpl
extends AbstractChunk
implements SequenceNumberChunk, Externalizable

Basic implementation of the SequenceNumberChunkinterface.

See Also:
Serialized Form

Field Summary
protected  long sn
          The sequence number.
 
Fields inherited from interface org.objectweb.dream.queue.SequenceNumberChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
SequenceNumberChunkImpl()
           
 
Method Summary
 long getSequenceNumber()
          Returns the sequence number of this message.
 ChunkType getType()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setSequenceNumber(long sn)
          Sets the sequence number of this message.
 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
 

Field Detail

sn

protected long sn
The sequence number.

Constructor Detail

SequenceNumberChunkImpl

public SequenceNumberChunkImpl()
Method Detail

getSequenceNumber

public long getSequenceNumber()
Description copied from interface: SequenceNumberChunk
Returns the sequence number of this message.

Specified by:
getSequenceNumber in interface SequenceNumberChunk
Returns:
the sequence number of this message.
See Also:
SequenceNumberChunk.getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(long sn)
Description copied from interface: SequenceNumberChunk
Sets the sequence number of this message.

Specified by:
setSequenceNumber in interface SequenceNumberChunk
Parameters:
sn - the sequence number to set.
See Also:
SequenceNumberChunk.setSequenceNumber(long)

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(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.