Class SingleMessageMetadata
java.lang.Object
org.apache.pulsar.common.api.proto.SingleMessageMetadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties
(Iterable<KeyValue> properties) clear()
copyFrom
(SingleMessageMetadata _other) long
byte[]
int
io.netty.buffer.ByteBuf
int
int
getPropertyAt
(int idx) long
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
parseFrom
(byte[] a) void
parseFrom
(io.netty.buffer.ByteBuf _buffer, int _size) setCompactedOut
(boolean compactedOut) setEventTime
(long eventTime) setNullPartitionKey
(boolean nullPartitionKey) setNullValue
(boolean nullValue) setOrderingKey
(byte[] orderingKey) setOrderingKey
(io.netty.buffer.ByteBuf orderingKey) setPartitionKey
(String partitionKey) setPartitionKeyB64Encoded
(boolean partitionKeyB64Encoded) setPayloadSize
(int payloadSize) setSequenceId
(long sequenceId) byte[]
int
writeTo
(io.netty.buffer.ByteBuf _b)
-
Constructor Details
-
SingleMessageMetadata
public SingleMessageMetadata()
-
-
Method Details
-
getPropertiesCount
public int getPropertiesCount() -
getPropertyAt
-
getPropertiesList
-
addProperty
-
addAllProperties
-
clearProperties
-
hasPartitionKey
public boolean hasPartitionKey() -
getPartitionKey
-
setPartitionKey
-
clearPartitionKey
-
hasPayloadSize
public boolean hasPayloadSize() -
getPayloadSize
public int getPayloadSize() -
setPayloadSize
-
clearPayloadSize
-
hasCompactedOut
public boolean hasCompactedOut() -
isCompactedOut
public boolean isCompactedOut() -
setCompactedOut
-
clearCompactedOut
-
hasEventTime
public boolean hasEventTime() -
getEventTime
public long getEventTime() -
setEventTime
-
clearEventTime
-
hasPartitionKeyB64Encoded
public boolean hasPartitionKeyB64Encoded() -
isPartitionKeyB64Encoded
public boolean isPartitionKeyB64Encoded() -
setPartitionKeyB64Encoded
-
clearPartitionKeyB64Encoded
-
hasOrderingKey
public boolean hasOrderingKey() -
getOrderingKeySize
public int getOrderingKeySize() -
getOrderingKey
public byte[] getOrderingKey() -
getOrderingKeySlice
public io.netty.buffer.ByteBuf getOrderingKeySlice() -
setOrderingKey
-
setOrderingKey
-
clearOrderingKey
-
hasSequenceId
public boolean hasSequenceId() -
getSequenceId
public long getSequenceId() -
setSequenceId
-
clearSequenceId
-
hasNullValue
public boolean hasNullValue() -
isNullValue
public boolean isNullValue() -
setNullValue
-
clearNullValue
-
hasNullPartitionKey
public boolean hasNullPartitionKey() -
isNullPartitionKey
public boolean isNullPartitionKey() -
setNullPartitionKey
-
clearNullPartitionKey
-
writeTo
public int writeTo(io.netty.buffer.ByteBuf _b) -
getSerializedSize
public int getSerializedSize() -
parseFrom
public void parseFrom(io.netty.buffer.ByteBuf _buffer, int _size) -
clear
-
copyFrom
-
toByteArray
public byte[] toByteArray() -
parseFrom
public void parseFrom(byte[] a)
-