Class PrimitiveId

java.lang.Object
io.atomix.utils.AbstractIdentifier<Long>
io.atomix.primitive.PrimitiveId
All Implemented Interfaces:
io.atomix.utils.Identifier<Long>

public class PrimitiveId
extends io.atomix.utils.AbstractIdentifier<Long>
Snapshot identifier.
  • Constructor Summary

    Constructors 
    Constructor Description
    PrimitiveId​(Long value)  
  • Method Summary

    Modifier and Type Method Description
    static PrimitiveId from​(long id)
    Creates a snapshot ID from the given number.
    static PrimitiveId from​(String id)
    Creates a snapshot ID from the given string.

    Methods inherited from class io.atomix.utils.AbstractIdentifier

    equals, hashCode, id, toString

    Methods inherited from class java.lang.Object

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

  • Method Details

    • from

      public static PrimitiveId from​(long id)
      Creates a snapshot ID from the given number.
      Parameters:
      id - the number from which to create the identifier
      Returns:
      the snapshot identifier
    • from

      public static PrimitiveId from​(String id)
      Creates a snapshot ID from the given string.
      Parameters:
      id - the string from which to create the identifier
      Returns:
      the snapshot identifier