public interface Sequenced
Modifier and Type | Method and Description |
---|---|
int |
getChunkSize()
Returns the chunk size of this agent.
|
int |
getMaxSequenceId()
Returns the maximum sequenceId.
|
int |
getSequenceId()
Returns the sequence id of the agent
|
boolean |
isLast()
Tells whether this is the very last agent of a sequence.
|
void |
processLast()
This method is called on client side, when the client receives the last agent of a sequence.
|
void |
sendLast()
Creates and sends the very last agent of a sequence.
|
void |
sendNextSequence()
Creates and sends the next agent of a sequence with an incremented sequenceId
|
void |
setChunkSize(int size)
Sets the chunk size, which typically is the amount of data transferred
by this agent.
|
void |
setMaxSequenceId(int maxId) |
int getSequenceId()
int getMaxSequenceId()
Note that in the very last agent sent (isLast flag set) the server automatically sets the MaxSequenceId to the number of agents that have been sent.
void setMaxSequenceId(int maxId)
void setChunkSize(int size)
int getChunkSize()
boolean isLast()
sendLast()
void sendNextSequence()
void sendLast()
void processLast()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.