Class DeltaView

java.lang.Object
org.jgroups.View
org.jgroups.protocols.pbcast.DeltaView
All Implemented Interfaces:
Comparable<View>, Iterable<Address>, Constructable<View>, SizeStreamable, Streamable

public class DeltaView extends View
Subclass of View with a null members field. Adds an array for left members and one for joined members compared to the previous view. A recipient receiving a DeltaView can construct a new view by grabbing the view corresponding to View.view_id, removing the left members and adding the new members.

This class is only used with VIEW messages in GMS to install new views (not merge views). When a VIEW message is received, the DeltaView is read from the GMS.GmsHeader, a View is constructured and the header discarded. Therefore, the lifetime of a DeltaView is short: it is created and set in a GmsHeader, the header is then marshalled. On the receiving side, the DeltaView is created from the stream, a View is created and the DeltaView discarded again.

Instances of this class are created by CoordGmsImpl.handleMembershipChange(java.util.Collection).

JIRA issue: https://issues.redhat.com/browse/JGRP-1354

Since:
3.4