Package com.linkedin.venice.pubsub.api
Class EmptyPubSubMessageHeaders
java.lang.Object
com.linkedin.venice.pubsub.api.PubSubMessageHeaders
com.linkedin.venice.pubsub.api.EmptyPubSubMessageHeaders
- All Implemented Interfaces:
Measurable
,Iterable<PubSubMessageHeader>
-
Field Summary
Fields inherited from class com.linkedin.venice.pubsub.api.PubSubMessageHeaders
VENICE_LEADER_COMPLETION_STATE_HEADER, VENICE_TRANSPORT_PROTOCOL_HEADER
-
Method Summary
Methods inherited from class com.linkedin.venice.pubsub.api.PubSubMessageHeaders
iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
SINGLETON
-
-
Method Details
-
add
- Overrides:
add
in classPubSubMessageHeaders
-
add
- Overrides:
add
in classPubSubMessageHeaders
-
remove
- Overrides:
remove
in classPubSubMessageHeaders
-
toList
- Overrides:
toList
in classPubSubMessageHeaders
- Returns:
- the headers as a List
. Mutating this list will not affect the PubSubMessageHeaders. If no headers are present an empty list is returned.
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classPubSubMessageHeaders
-
getHeapSize
public int getHeapSize()- Specified by:
getHeapSize
in interfaceMeasurable
- Overrides:
getHeapSize
in classPubSubMessageHeaders
-