public class MessageHeader
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
MessageHeader.Builder
RecordBuilder for MessageHeader instances.
|
Modifier and Type | Field and Description |
---|---|
long |
correlationId
Deprecated.
|
int |
messageFlags
Deprecated.
|
long |
messageId
Deprecated.
|
int |
messageType
Deprecated.
|
int |
protocol
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
MessageHeader()
Default constructor.
|
MessageHeader(Integer protocol,
Integer messageType,
Long correlationId,
Long messageId,
Integer messageFlags)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Long |
getCorrelationId()
Gets the value of the 'correlationId' field.
|
Integer |
getMessageFlags()
Gets the value of the 'messageFlags' field.
|
Long |
getMessageId()
Gets the value of the 'messageId' field.
|
Integer |
getMessageType()
Gets the value of the 'messageType' field.
|
Integer |
getProtocol()
Gets the value of the 'protocol' field.
|
org.apache.avro.Schema |
getSchema() |
static MessageHeader.Builder |
newBuilder()
Creates a new MessageHeader RecordBuilder
|
static MessageHeader.Builder |
newBuilder(MessageHeader.Builder other)
Creates a new MessageHeader RecordBuilder by copying an existing Builder
|
static MessageHeader.Builder |
newBuilder(MessageHeader other)
Creates a new MessageHeader RecordBuilder by copying an existing MessageHeader instance
|
void |
put(int field$,
Object value$) |
void |
setCorrelationId(Long value)
Sets the value of the 'correlationId' field.
|
void |
setMessageFlags(Integer value)
Sets the value of the 'messageFlags' field.
|
void |
setMessageId(Long value)
Sets the value of the 'messageId' field.
|
void |
setMessageType(Integer value)
Sets the value of the 'messageType' field.
|
void |
setProtocol(Integer value)
Sets the value of the 'protocol' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int protocol
@Deprecated public int messageType
@Deprecated public long correlationId
@Deprecated public long messageId
@Deprecated public int messageFlags
public MessageHeader()
newBuilder()
.public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public Integer getProtocol()
public void setProtocol(Integer value)
value
- the value to set.public Integer getMessageType()
public void setMessageType(Integer value)
value
- the value to set.public Long getCorrelationId()
public void setCorrelationId(Long value)
value
- the value to set.public Long getMessageId()
public void setMessageId(Long value)
value
- the value to set.public Integer getMessageFlags()
public void setMessageFlags(Integer value)
value
- the value to set.public static MessageHeader.Builder newBuilder()
public static MessageHeader.Builder newBuilder(MessageHeader.Builder other)
public static MessageHeader.Builder newBuilder(MessageHeader other)
Copyright © 2023 Petroware AS - https://petroware.no