Class InboundUnauthenticatedMessageHeader
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class InboundUnauthenticatedMessageHeader extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
InboundUnauthenticatedMessageHeader.Builder
RecordBuilder for InboundUnauthenticatedMessageHeader instances.
-
Constructor Summary
Constructors Constructor Description InboundUnauthenticatedMessageHeader()
Default constructor. InboundUnauthenticatedMessageHeader(String subsystem, String messageId)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getSubsystem()
Gets the value of the 'subsystem' field. void
setSubsystem(String value)
Sets the value of the 'subsystem' field. String
getMessageId()
Gets the value of the 'messageId' field. void
setMessageId(String value)
Sets the value of the 'messageId' field. static Schema
getClassSchema()
static BinaryMessageEncoder<InboundUnauthenticatedMessageHeader>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<InboundUnauthenticatedMessageHeader>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<InboundUnauthenticatedMessageHeader>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this InboundUnauthenticatedMessageHeader to a ByteBuffer. static InboundUnauthenticatedMessageHeader
fromByteBuffer(ByteBuffer b)
Deserializes a InboundUnauthenticatedMessageHeader from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static InboundUnauthenticatedMessageHeader.Builder
newBuilder()
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder. static InboundUnauthenticatedMessageHeader.Builder
newBuilder(InboundUnauthenticatedMessageHeader.Builder other)
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder by copying an existing Builder. static InboundUnauthenticatedMessageHeader.Builder
newBuilder(InboundUnauthenticatedMessageHeader other)
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder by copying an existing InboundUnauthenticatedMessageHeader instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
InboundUnauthenticatedMessageHeader
InboundUnauthenticatedMessageHeader()
Default constructor.
-
InboundUnauthenticatedMessageHeader
InboundUnauthenticatedMessageHeader(String subsystem, String messageId)
All-args constructor.- Parameters:
subsystem
- This value identifies the upstream user of the p2p layer that this message is sent from and should be received by.messageId
- A unique identifier for this message.
-
-
Method Detail
-
getSubsystem
String getSubsystem()
Gets the value of the 'subsystem' field.
-
setSubsystem
void setSubsystem(String value)
Sets the value of the 'subsystem' field. This value identifies the upstream user of the p2p layer that this message is sent from and should be received by. It can be used to filter incoming messages from the p2p layer and process only the ones destined for a specific system.
- Parameters:
value
- the value to set.
-
getMessageId
String getMessageId()
Gets the value of the 'messageId' field.
-
setMessageId
void setMessageId(String value)
Sets the value of the 'messageId' field. A unique identifier for this message. This will be used by the p2p layer to identify the message in the logs.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<InboundUnauthenticatedMessageHeader> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<InboundUnauthenticatedMessageHeader> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<InboundUnauthenticatedMessageHeader> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this InboundUnauthenticatedMessageHeader to a ByteBuffer.
-
fromByteBuffer
static InboundUnauthenticatedMessageHeader fromByteBuffer(ByteBuffer b)
Deserializes a InboundUnauthenticatedMessageHeader from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static InboundUnauthenticatedMessageHeader.Builder newBuilder()
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder.
-
newBuilder
static InboundUnauthenticatedMessageHeader.Builder newBuilder(InboundUnauthenticatedMessageHeader.Builder other)
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static InboundUnauthenticatedMessageHeader.Builder newBuilder(InboundUnauthenticatedMessageHeader other)
Creates a new InboundUnauthenticatedMessageHeader RecordBuilder by copying an existing InboundUnauthenticatedMessageHeader instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-