Class CorrelationKey
- java.lang.Object
-
- org.springframework.kafka.requestreply.CorrelationKey
-
public final class CorrelationKey extends java.lang.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.- Since:
- 2.1.3
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description CorrelationKey(byte[] correlationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte[]
getCorrelationId()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getCorrelationId
public byte[] getCorrelationId()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-