Class LightweightIdentifier

java.lang.Object
com.evolveum.midpoint.task.api.LightweightIdentifier
All Implemented Interfaces:
Serializable

public class LightweightIdentifier extends Object implements Serializable
Lightweight identifier is a "reasonable unique" identifier that is very cheap to create. While objects have OID, creating a unique OID means communication with the repository. This quite expensive and therefore it is unsuitable for more purposes, such as creating identifiers for tasks or audit records. Lightweight identifiers are used instead. See https://docs.evolveum.com/midpoint/architecture/concepts/lightweight-identifier/
Author:
semancik
See Also:
  • Constructor Details

    • LightweightIdentifier

      public LightweightIdentifier(long timestamp, int hostIdentifier, int sequenceNumber)
  • Method Details

    • getTimestamp

      public long getTimestamp()
    • getHostIdentifier

      public int getHostIdentifier()
    • getSequenceNumber

      public int getSequenceNumber()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object