Class KeyLongValue
- java.lang.Object
-
- org.apache.pulsar.common.api.proto.KeyLongValue
-
public final class KeyLongValue extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KeyLongValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyLongValueclear()KeyLongValueclearKey()KeyLongValueclearValue()KeyLongValuecopyFrom(KeyLongValue _other)java.lang.StringgetKey()intgetSerializedSize()longgetValue()booleanhasKey()booleanhasValue()voidparseFrom(byte[] a)voidparseFrom(io.netty.buffer.ByteBuf _buffer, int _size)KeyLongValuesetKey(java.lang.String key)KeyLongValuesetValue(long value)byte[]toByteArray()intwriteTo(io.netty.buffer.ByteBuf _b)
-
-
-
Method Detail
-
hasKey
public boolean hasKey()
-
getKey
public java.lang.String getKey()
-
setKey
public KeyLongValue setKey(java.lang.String key)
-
clearKey
public KeyLongValue clearKey()
-
hasValue
public boolean hasValue()
-
getValue
public long getValue()
-
setValue
public KeyLongValue setValue(long value)
-
clearValue
public KeyLongValue clearValue()
-
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
public KeyLongValue clear()
-
copyFrom
public KeyLongValue copyFrom(KeyLongValue _other)
-
toByteArray
public byte[] toByteArray()
-
parseFrom
public void parseFrom(byte[] a)
-
-