Class BucketKey

java.lang.Object
org.tasktide.mutex.bucketing.BucketKey

public class BucketKey extends Object
Bucket key used for hashing
  • Constructor Details

    • BucketKey

      public BucketKey()
      Construct with using host name, and process Id and current millisecond time stamp
    • BucketKey

      public BucketKey(String hostLabel, String runId)
      Construct with job identity properties
      Parameters:
      hostLabel -
      runId -
  • Method Details

    • asBucketKeyString

      public String asBucketKeyString()
      Represent as a colon delimited string
      Returns:
      String
    • getHostLabel

      public String getHostLabel()
      Get host label
      Returns:
      String
    • getRunId

      public String getRunId()
      Get run label
      Returns:
      String
    • toString

      public String toString()
      Represent as string
      Overrides:
      toString in class Object
      Returns:
      String