Class OutboundUnauthenticatedMessageHeader
-
- 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 OutboundUnauthenticatedMessageHeader extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
OutboundUnauthenticatedMessageHeader.Builder
RecordBuilder for OutboundUnauthenticatedMessageHeader instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public HoldingIdentity
destination
public HoldingIdentity
source
public String
subsystem
public String
messageId
-
Constructor Summary
Constructors Constructor Description OutboundUnauthenticatedMessageHeader()
Default constructor. OutboundUnauthenticatedMessageHeader(HoldingIdentity destination, HoldingIdentity source, String subsystem, String messageId)
All-args constructor.
-
Method Summary
Modifier and Type Method Description HoldingIdentity
getDestination()
Gets the value of the 'destination' field. void
setDestination(HoldingIdentity value)
Sets the value of the 'destination' field. HoldingIdentity
getSource()
Gets the value of the 'source' field. void
setSource(HoldingIdentity value)
Sets the value of the 'source' field. 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<OutboundUnauthenticatedMessageHeader>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<OutboundUnauthenticatedMessageHeader>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<OutboundUnauthenticatedMessageHeader>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this OutboundUnauthenticatedMessageHeader to a ByteBuffer. static OutboundUnauthenticatedMessageHeader
fromByteBuffer(ByteBuffer b)
Deserializes a OutboundUnauthenticatedMessageHeader from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static OutboundUnauthenticatedMessageHeader.Builder
newBuilder()
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder. static OutboundUnauthenticatedMessageHeader.Builder
newBuilder(OutboundUnauthenticatedMessageHeader.Builder other)
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder by copying an existing Builder. static OutboundUnauthenticatedMessageHeader.Builder
newBuilder(OutboundUnauthenticatedMessageHeader other)
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder by copying an existing OutboundUnauthenticatedMessageHeader 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
-
OutboundUnauthenticatedMessageHeader
OutboundUnauthenticatedMessageHeader()
Default constructor.
-
OutboundUnauthenticatedMessageHeader
OutboundUnauthenticatedMessageHeader(HoldingIdentity destination, HoldingIdentity source, String subsystem, String messageId)
All-args constructor.- Parameters:
destination
- The destination identity for this message.source
- The source identity of this message.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
-
getDestination
HoldingIdentity getDestination()
Gets the value of the 'destination' field.
-
setDestination
void setDestination(HoldingIdentity value)
Sets the value of the 'destination' field. The destination identity for this message.
- Parameters:
value
- the value to set.
-
getSource
HoldingIdentity getSource()
Gets the value of the 'source' field.
-
setSource
void setSource(HoldingIdentity value)
Sets the value of the 'source' field. The source identity of this message.
- Parameters:
value
- the value to set.
-
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<OutboundUnauthenticatedMessageHeader> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<OutboundUnauthenticatedMessageHeader> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<OutboundUnauthenticatedMessageHeader> 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 OutboundUnauthenticatedMessageHeader to a ByteBuffer.
-
fromByteBuffer
static OutboundUnauthenticatedMessageHeader fromByteBuffer(ByteBuffer b)
Deserializes a OutboundUnauthenticatedMessageHeader 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 OutboundUnauthenticatedMessageHeader.Builder newBuilder()
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder.
-
newBuilder
static OutboundUnauthenticatedMessageHeader.Builder newBuilder(OutboundUnauthenticatedMessageHeader.Builder other)
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static OutboundUnauthenticatedMessageHeader.Builder newBuilder(OutboundUnauthenticatedMessageHeader other)
Creates a new OutboundUnauthenticatedMessageHeader RecordBuilder by copying an existing OutboundUnauthenticatedMessageHeader 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)
-
-
-
-