next up previous contents
Next: Getting the group's state Up: Channel Previous: Receiving a message   Contents

Peeking at a message

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-11-16