Class CorrelationKey

java.lang.Object
org.springframework.kafka.requestreply.CorrelationKey

public final class CorrelationKey extends Object
Wrapper for byte[] that can be used as a hash key. We could have used BigInteger instead but this wrapper is much less expensive. We do use a BigInteger in toString() though.
Since:
2.1.3
Author:
Gary Russell
  • Constructor Details

    • CorrelationKey

      public CorrelationKey(byte[] correlationId)
  • Method Details

    • getCorrelationId

      public byte[] getCorrelationId()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object