next up previous contents
Next: Getting the group's state Up: Channels Previous: Receiving data   Contents

Peeking at data

Instead of removing the next available message from the channel, Peek just returns a reference to the next message, but does not remove it. This is useful when one has to check the type of the next message, e.g. whether it is a regular message, or a view change. The signature of this method is not shown here, it is the same as for Receive.



Bela Ban 2002-02-20