next up previous contents
Next: Disconnecting from a channel Up: Channels Previous: Getting the group's state

Getting the current view

The following method can be used to get the current view of a channel:

        public View GetView();

This method does not retrieve a new view (message) from the channel, but only returns the current view of the channel. The current view is updated every time a view message is received: when method Receive is called, and the return value is a view, before the view is returned, it will be installed in the channel, i.e. it will become the current view.

Calling this method on an unconnected or closed channel is implementation defined. A channel may return null, or it may return the last view it knew of.




1999-08-19