Package com.linkedin.venice.pubsub.api
Class PubSubMessageHeader
- java.lang.Object
-
- com.linkedin.venice.pubsub.api.PubSubMessageHeader
-
- All Implemented Interfaces:
Measurable
public class PubSubMessageHeader extends java.lang.Object implements Measurable
A key-value pair that is associated with a message
-
-
Constructor Summary
Constructors Constructor Description PubSubMessageHeader(java.lang.String key, byte[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object otherObj)
int
getHeapSize()
TODO: the following estimation doesn't consider the overhead of the internal structure.int
hashCode()
java.lang.String
key()
byte[]
value()
-
-
-
Method Detail
-
key
public java.lang.String key()
-
value
public byte[] value()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object otherObj)
- Overrides:
equals
in classjava.lang.Object
-
getHeapSize
public int getHeapSize()
TODO: the following estimation doesn't consider the overhead of the internal structure.- Specified by:
getHeapSize
in interfaceMeasurable
-
-