Class SequentialIdLease

java.lang.Object
com.mysql.cj.util.SequentialIdLease

public class SequentialIdLease
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    SequentialIdLease()  
  • Method Summary

    Modifier and Type Method Description
    int allocateSequentialId()
    Finds and allocates the first available sequential id.
    void releaseSequentialId​(int sequentialId)
    Frees the given sequential id so that it can be reused.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • allocateSequentialId

      public int allocateSequentialId()
      Finds and allocates the first available sequential id.
      Returns:
      the next free sequential id.
    • releaseSequentialId

      public void releaseSequentialId​(int sequentialId)
      Frees the given sequential id so that it can be reused.
      Parameters:
      sequentialId - the sequential id to release