java.lang.Object
org.apache.jena.dboe.transaction.txn.ComponentId

public class ComponentId extends Object
A ComponentId consists of two parts: a globally unique context (roughly - the domain where the ComponentId is valid) and an id within the context. Context is often a single coordinator but can be, for example, a distributed transaction coordinator.
  • Field Details

  • Method Details

    • getBytes

      public byte[] getBytes()
    • getBaseId

      public UUID getBaseId()
    • label

      public String label()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • create

      public static ComponentId create(UUID coordinatorBase, byte[] bytes)
      Create a ComponentId from the given bytes
    • alloc

      public static ComponentId alloc(String label, UUID coordinatorBase, int index)
      Given a base componentId, create a derived (different) one. This is deterministically done based on baseComponentId and index. The label is just for display purposes.
    • allocLocal

      public static ComponentId allocLocal()
      Return a fresh ComponentId (not preserved across JVM runs)
    • allocLocal

      public static ComponentId allocLocal(int id)