Class MemberId

java.lang.Object
io.atomix.utils.AbstractIdentifier<String>
io.atomix.cluster.NodeId
io.atomix.cluster.MemberId
All Implemented Interfaces:
io.atomix.utils.Identifier<String>, Comparable<NodeId>

public class MemberId
extends NodeId
Controller cluster identity.
  • Constructor Summary

    Constructors 
    Constructor Description
    MemberId​(String id)  
  • Method Summary

    Modifier and Type Method Description
    static MemberId anonymous()
    Creates a new cluster node identifier from the specified string.
    static MemberId from​(String id)
    Creates a new cluster node identifier from the specified string.

    Methods inherited from class io.atomix.cluster.NodeId

    compareTo, equals, hashCode

    Methods inherited from class io.atomix.utils.AbstractIdentifier

    id, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • anonymous

      public static MemberId anonymous()
      Creates a new cluster node identifier from the specified string.
      Returns:
      node id
    • from

      public static MemberId from​(String id)
      Creates a new cluster node identifier from the specified string.
      Parameters:
      id - string identifier
      Returns:
      node id