|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractChunk<SequenceNumberChunk>
org.objectweb.dream.queue.SequenceNumberChunk
public class SequenceNumberChunk
Chunk interface for messages that have to be sequentially ordered.
Field Summary | |
---|---|
static String |
DEFAULT_NAME
The default name for chunks of this type. |
Constructor Summary | |
---|---|
SequenceNumberChunk()
Default constructor |
|
SequenceNumberChunk(long sequenceNumber)
|
Method Summary | |
---|---|
static String |
filterChunkName(String chunkName)
If the given chunkName is equals to the default name returns
DEFAULT_NAME , returns the given string otherwise. |
long |
getSequenceNumber()
Returns the sequence number of this chunk. |
SequenceNumberChunk |
newChunk()
|
void |
readExternal(ObjectInput in)
|
void |
recycle()
|
void |
setSequenceNumber(long sn)
Sets the sequence number of this chunk. |
void |
transfertStateTo(SequenceNumberChunk 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 |
---|
public static final String DEFAULT_NAME
Constructor Detail |
---|
public SequenceNumberChunk()
public SequenceNumberChunk(long sequenceNumber)
sequenceNumber
- the sequence number of this chunk.Method Detail |
---|
public static String filterChunkName(String chunkName)
chunkName
is equals to the default name returns
DEFAULT_NAME
, returns the given string otherwise.
chunkName
- the chunk name to filter.
DEFAULT_NAME
or the given chunkName
.public final long getSequenceNumber()
public final void setSequenceNumber(long sn)
sn
- the sequence number to set.public void transfertStateTo(SequenceNumberChunk newInstance)
transfertStateTo
in class AbstractChunk<SequenceNumberChunk>
AbstractChunk.transfertStateTo(AbstractChunk)
public SequenceNumberChunk newChunk()
newChunk
in class AbstractChunk<SequenceNumberChunk>
AbstractChunk.newChunk()
public void recycle()
Recyclable.recycle()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
IOException
Externalizable.writeExternal(ObjectOutput)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |