Interface IdGeneratorSource


public interface IdGeneratorSource
Provides values for ID generators, usually provided by NodeLease implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    int
    Returns the node ID if the node is active/valid or -1.
  • Method Details

    • nodeId

      int nodeId()
      Returns the node ID if the node is active/valid or -1.
    • currentTimeMillis

      long currentTimeMillis()