|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectinputOutputHandler.ReplyDecision
final class ReplyDecision
Decides about the optimal reply size and time depending on the current traffic situation (only used by last mix of cascade).
"Traffic situation" means the amount of data available to reply (for each channel/user) at a given point of time.
"Optimal size" means the best tradeoff between padding and the total amount of (available) data actually sent. A "perfect size" is only possible if all channels contain the same amount of data. In any other situation, optimizing one parameter will have a negative effect on the other. So, "the best tradeoff" depends on situational conditions and therefore can't be generalized.
"Optimal time" means the best point of time for returning the data available which again is a tradeoff and depends on situational conditions and therefore can't be generalized.
Constructor Summary | |
---|---|
protected |
ReplyDecision(InputOutputHandlerController inputOutputHandler)
Creates a new ReplyDecision object which can be used to
decides about the optimal reply size and time depending on the current
traffic situation by the last mix of a cascade. |
Method Summary | |
---|---|
protected void |
manageReplyProcess(User[] channels)
Decides about the optimal reply size and time depending on the current traffic situation for the bypassed channels/users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ReplyDecision(InputOutputHandlerController inputOutputHandler)
ReplyDecision
object which can be used to
decides about the optimal reply size and time depending on the current
traffic situation by the last mix of a cascade.
"Traffic situation" means the amount of data available to reply (for each channel/user) at a given point of time.
"Optimal size" means the best tradeoff between padding and the total amount of (available) data actually sent. A "perfect size" is only possible if all channels contain the same amount of data. In any other situation, optimizing one parameter will have a negative effect on the other. So, "the best tradeoff" depends on situational conditions and therefore can't be generalized.
"Optimal time" means the best point of time for returning the data available which again is a tradeoff and depends on situational conditions and therefore can't be generalized.
inputOutputHandler
- Reference on
InputOutputHandlerController
(used to add unprocessed
Reply
ies).Method Detail |
---|
protected void manageReplyProcess(User[] channels)
channels
- The channels/users to be observed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |