next up previous contents
Next: FD Up: JChannel Protocols Previous: Templates

Delay

This layer can be used to delay incoming, outgoing or both types of messages. It is usually inserted directly on top of the bottommost layer (e.g. UDP). The delay for incoming messages (i.e. messages traveling up the stack is set using property IN_delay, for outgoing messages, out_delay is used. Both delays are the number of milliseconds a message should be delayed before passing it to the next layer. The message will be delayed a random value of milliseconds, where the range is between 0 and the delay specified in the property. As example, a delay of 100 for out_delay will delay all outgoing messages by a random number of milliseconds between 0 and 100.

This layer can be used to experiment with message delays, e.g. in testing other protocol layers.




1999-12-13