Package org.jgroups

Class ViewId

java.lang.Object
org.jgroups.ViewId
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Comparable, Streamable

public class ViewId extends Object implements Externalizable, Comparable, Cloneable, Streamable
ViewIds are used for ordering views (each view has a ViewId and a list of members). Ordering between views is important for example in a virtual synchrony protocol where all views seen by a member have to be ordered.
See Also:
  • Constructor Details

    • ViewId

      public ViewId()
    • ViewId

      public ViewId(Address coord_addr)
      Creates a ViewID with the coordinator address and a Lamport timestamp of 0.
      Parameters:
      coord_addr - the address of the member that issued this view
    • ViewId

      public ViewId(Address coord_addr, long id)
      Creates a ViewID with the coordinator address and the given Lamport timestamp.
      Parameters:
      coord_addr - - the address of the member that issued this view
      id - - the Lamport timestamp of the view
  • Method Details